regexp_match() function

Returns true if any part of a string matches the supplied regular expression.

Syntax

regexp_match(string,regex)

Arguments

string → is string. The string to test against the regular expression.
regex → is string. The regular expression to test against. Backslash characters must be double escaped (eg "\\s" to match a white space character). Non-greedy regular expressions are not supported.

Example

regexp_match('QGIS ROCKS','\\sROCKS') → 1