klyn.regex.RegExMatcher.find
method
public native find() as Boolean throws RegExException
Description

Searches for the next occurrence of the regular expression. Anchors and word boundaries refer to the original input, not to the remaining suffix. Empty matches advance by one Unicode character.

Returns

true when another match was found, otherwise false.

Throws
  • RegExException if the regular expression cannot be evaluated.
Example
matcher = RegEx(r"\d+").matcher("A12 B34")
print(matcher.find())  # true
print(matcher.find())  # true
print(matcher.find())  # false