fullmatch
relationalai.semantics.std.re
fullmatch( regex: StringValue, value: StringValue, pos: IntegerValue = 0) -> RegexMatchCheck if the regex matches the entire value starting at the given position.
Parameters
Section titled “Parameters”
(regexStringValue) - The regular expression pattern.
(valueStringValue) - The string value to match against.
(posIntegerValue, default:0) - The starting position for the match (0-based). Default: 0.
Returns
Section titled “Returns”RegexMatch- ARegexMatchobject representing the match result.
Examples
Section titled “Examples”Match entire string against a pattern:
>>> re.fullmatch(r"[A-Z][a-z]+", Person.name)>>> select(Email.address).where(re.fullmatch(r"\w+@\w+\.\w+", Email.address))