public findAll(input as String) as Array<MatchResult>:
Finds all occurrences of the pattern in the input.
| Parameter | Description |
|---|---|
input | The string to search. |
An array containing all found occurrences.
regex = RegEx("\\d+")
results = regex.findAll("123 abc 456")
print(results[0].value) # 123
print(results[1].value) # 456