PowerShell Tip: Using Split for String Manipulation
Summary
In this TechNet Wiki I will give a short demo about using a String Split using PowerShell
Invoke Split as Method
Using this method is easy and looks cool
('Testing;String,Split{Bingo!!!').Split(';,{') -Join ' ' |
Using Split as Operator
This requires multiple split operators. :)
('Testing;String,Split{Bingo!!!') -split ';' -split ',' -split '{' -join ' ' |
Opting the best method in PowerShell is good. This way we can manipulate many outputs in our daily operations.
Video Reference
View
Enjoy PowerShell :)