array split(text, regex)
Returns an array with the text split around matches of the delimiter regular expression.
If the regular expression contain capture groups, the matching parts of the delimiter will also be included in the resulting array as seperate elements.
- text — text to split.
- regex — regular expression where the split occur, the delimiter.
- an array containing each part of the split text, including mathing capture groups of the delimiter.