Text & patterns
Scalar
regexp_matches()
Returns true if string contains the regexp pattern, false otherwise. A set of optional options can be set.
Arguments & returns
2 overloadsregexp_matches(string, pattern[)
Scalar
| Overload link | string | pattern[ |
Returns |
|---|---|---|---|
| #01 | VARCHAR | VARCHAR |
BOOLEAN |
regexp_matches(string, pattern[, options])
Scalar
| Overload link | string | pattern[ | options] |
Returns |
|---|---|---|---|---|
| #02 | VARCHAR | VARCHAR | VARCHAR |
BOOLEAN |
Example
Haybarn WASM 1.5.5-rc3 · In your browser
Engine example · Run to view results.
In other engines
PostgreSQL
SELECT 'ThOmAs' ~* 'thomas'
SELECT REGEXP_MATCHES('ThOmAs', 'thomas', 'i')