Summary: Easily split a string on multiple characters with Windows PowerShell.
How can I use Windows PowerShell to split a string that contains multiple separator characters (for example, a comma and a semicolon)?
Specify a string with the characters in it to the Split method:
PS C:\> $string = "This,is;a;string"
PS C:\> $string.Split(',;')
This
is
a
string
0 comments