klyn.regex.RegEx.split
method
public native split(input as String) as Array<String>:
Description

Splits the input into an array of substrings using the pattern as a delimiter.

Parameters
ParameterDescription
inputThe string to split.
Returns

An array of substrings.

Example
regex = RegEx(r"\s+")
results = regex.split("123 abc 456")  # results will be ["123", "abc", "456"]