public native split(input as String) as Array<String>:
Splits the input into an array of substrings using the pattern as a delimiter.
| Parameter | Description |
|---|---|
input | The string to split. |
An array of substrings.
regex = RegEx(r"\s+")
results = regex.split("123 abc 456") # results will be ["123", "abc", "456"]