the string to split.
a string or Regular Expression that separates the str
into substrings.
Optional
limit: numberlimit the number of elements returned in the array.
limit
,
the last item will contain the rest of the string.delimiter
is empty string, this function will return an array of UTF-16 characters
of str
. If delimiter
is a Regular Expression and it matches empty string, the corresponding array item will be
the next UTF-16 character (without u
flag) or Unicode code point (with u
flag) from the current matching position
of str
.Split a string into substrings using the specified separator and return them as an array.
the string to split.
a string or Regular Expression that separates the str
into substrings.
Optional
options: StringSplitOptionsadditional options.
limit
,
the last item will contain the rest of the string.delimiter
is empty string, this function will return an array of UTF-16 characters
of str
. If delimiter
is a Regular Expression and it matches empty string, the corresponding array item will be
the next UTF-16 character (without u
flag) or Unicode code point (with u
flag) from the current matching position
of str
.
Split a string into substrings using the specified separator and return them as an array.