Powershell String Manipulation
String Manipulation: Splitting and Joining Strings
Some more basic things, The split() method of a string object lets you define a delimiter and "split" the string up into multiple pieces, which are returned as an array.
C:\test> $string = "text1 text2 text3 text4" C:\test> $string.split(" ") text1 text2 text3 text4
Two Simple PowerShell Methods to Remove the Last Letter of a String