klyn.regex.RegEx.matches
method
public native matches(input as String) as Boolean:
DescriptionChecks if the input matches the pattern.
regex = RegEx("^\\d+$")
result = regex.matches("12345") # result will be true
ReturnsTrue if the input matches the pattern, false otherwise. ``` regex = RegEx("^\\d+$") result = regex.matches("12345") # result will be true ```