I have a string, which I have split using the code $CreateDT.Split(\" \"). I now want to manipulate two separate strings in different ways. How can I separate t
It is important to note the following difference between the two techniques:
$Str="This is the
source string
ALL RIGHT"
$Str.Split("
")
This
is
the
(multiple blank lines)
source
string
(multiple blank lines)
ALL
IGHT
$Str -Split("
")
This is the
source string
ALL RIGHT
From this you can see that the string.split() method:
While the -split operator: