Returns true if the string matches the specified regexp.
Returning a boolean cannot be used to extract the match.
Returns true if the string matches the specified regexp.