match_regex
Checks if a string partially matches a regular expression.
Description
The match_regex
function returns true
if regex
matches a substring of input
.
To check whether the full string matches, you can use ^
and $
to signify
start and end of the string.
input: string
The string to partially match.
regex: string
The regular expression try and match.
The supported regular expression syntax is RE2.
In particular, this means that lookahead (?=...)
and lookbehind (?<=...)
are
not supported by match_regex
at the moment.