klyn.regex.RegEx.split
method
public native split(input as String) as Array<String>:
DescriptionSplits the input into an array of substrings using the pattern as a delimiter.
regex = RegEx(r"\s+")
results = regex.split("123 abc 456") # results will be ["123", "abc", "456"]
ReturnsAn array of substrings. ``` regex = RegEx(r"\s+") results = regex.split("123 abc 456") # results will be ["123", "abc", "456"] ```