Whether the pattern matches anywhere in text, starting at or after byte start.
Regex :: #import "Extensions/Regex";
re, _ := Regex.compile("[0-9]+");
assert(Regex.is_match(*re, "room 101"));
assert(!Regex.is_match(*re, "no digits"));
Regex.free_regex(*re);is_match :: (re: *Regex, text: string, start := 0) -> bool
Parameters
- re: *Regex
- text: string
- start := 0
Returns
- bool
is_match :: ($R: Type, text: string, start := 0) -> bool
Whether the static pattern matches anywhere in text.
Parameters
- $R: Type
- text: string
- start := 0
Returns
- bool
Regex :: #import "Extensions/Regex";
Digits :: Regex.Static("[0-9]+");
assert(Regex.is_match(Digits, "room 101"));