Predefined function reference

string_matches

A reference entry for string_matches

Predefined function · string

string_matches (string text, string regex_pattern) ⇒ boolean

Returns a boolean true or false value as to whether a string, text, matches the regular language pattern, regex_pattern.

Alternative function names: str_matches

Notes

It is worth noting that this is less efficient than running a == on a string because it first needs to compile a regular expression.