public native matches(input as String) as Boolean:
Checks if the input matches the pattern.
| Parameter | Description |
|---|---|
input | The string to check. |
True if the input matches the pattern, false otherwise.
regex = RegEx("^\\d+$")
result = regex.matches("12345") # result will be true