Breaks the specified string into fragments divided by the specified delimiter and returns a Vector containing those fragments.

Parameters:

str

The string to be broken
delimiter
delimiters
The delimiter substring or an array of delimiters.

In the case of multiple delimiters, the one is used at each string breaking cycle, whose position occurs the first within the rest of the string.

trimSpaces
Specifies whether the white spaces should be removed from each fragment's ends. Besides this, if 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.

See Also:

mergeStrings()

Examples:

(1) The following call

breakString("Veni -> vidi -> vici", "->");
will produce Vector:
{ "Veni ", " vidi ", " vici" }
(2) The call

breakString("one, two and three",
            Array (",", "and"),
            true);
will return:
{ "one", "two", "three" }