Array.split

Function/Meaning

Split the string.

Type
Arrayclassmethod of
Syntax
split(pattern:string, text:string, reserve, ignoreSpace:bool=false) :Array
Arguments
pattern

Specifies a pattern or delimiter set.
The pattern must be a regular expression object.
For the delimiter set, specify the character that will be the delimiter.
You can specify multiple delimiters by specifying a character string.

text

Specify the character string to be divided.

reserve

Reserved for future versions.

ignoreSpace

Specify true if the element is empty (for example, ,,,,, when the comma is the delimiter) and you do not want to copy the element into the array.

Return value

Returns the object itself of this Array class.

Explanation

Initialize the array and copy the strings separated by patterns or delimiters into this array.