public matches(regex as RegEx) as Boolean
Tests the complete text against a regular expression.
| Parameter | Description |
|---|---|
regex | Regular expression; null does not match. |
Whether the regular expression matches.
import klyn.regex
assert m"123".matches(RegEx("[0-9]+"))