public matches(regex as klyn.regex.RegEx) as Boolean throws klyn.regex.RegExException:
Tests the string against a regular expression.
| Parameter | Description |
|---|---|
regex | Regular expression. |
True if the regex matches.
import klyn.regex assert "12345".matches(RegEx(r"^\d+$"))