Scalar. Determines whether or not a string contains a match for a POSIX regular expression pattern.
regexp_search ( string, regex )
string | A string. |
regex | A POSIX regular expression pattern. This pattern is limited to the Perl Syntax. |
Determines whether or not a string contains a match for a POSIX regular expression pattern. The function returns the Boolean expression corresponding to whether or not the string contains the pattern (TRUE or FALSE).
The function works with UTF-8 strings if the -U server option is specified.
regexp_search('aaadogaaa', '[b-z]*') returns TRUE.
regexp_search('h', '[i-z]*') returns FALSE.