Breaks the specified string into fragments divided by the specified separator and returns a Vector containing those fragments.
Parameters:
str
separator
separators
In the case of multiple separators, the one is used at each string breaking cycle, whose position occurs the first within the rest of the string.
trimSpaces
true
, the empty fragments and those consist of only white spaces will
be ignored and not included in the result Vector.
If this parameter is not specified, it is assumed to be false
.
mergeStrings()
(1) The following call
breakString("Veni -> vidi -> vici", "->");
{ "Veni ", " vidi ", " vici" }
breakString("one, two and three",
Array (",", "and"),
true);
{ "one", "two", "three" }