klyn.regex.RegEx.matches
method
public native matches(input as String) as Boolean throws RegExException:
Description

Checks if the input matches the pattern.

Parameters
ParameterDescription
inputThe string to check.
Returns

True if the input matches the pattern, false otherwise.

Throws
  • RegExException if the regular expression cannot be evaluated.
Example
regex = RegEx("^\\d+$")
result = regex.matches("12345")  # result will be true