|On this page|
Splits a string into tokens by removing separator characters from the string and creating an array entry for each substring bounded by separators. When no separator string is provided, the string is split on whitespace (spaces, tab, and return).
maxsplits parameter limits the number of times the string is split,
this is useful to peel off one token at a time from a larger string.
This differs from Python’s split() in that it takes a list of separators, not a single string to use as a separator.
The string to split.
The separators to split the string on.
The maximum number of splits to perform.
An array of string tokens the input string was split into.