Skip to content

regexp_like

Performs a comparison to determine whether a string matches a specified pattern. Both inputs must be strings.

regexp_like( <subject> , <regex> )

The string to search for matches.

The regular expression pattern to match.

Returns a boolean or NULL. The value is TRUE if there is a match. Otherwise, returns FALSE. Returns NULL if any argument is NULL.

VALUES
('Sacramento'),
('San Francisco'),
('San Jose'),
(NULL)
WHERE regexp_like($0, 'San.*');
+---------------+
| $0 |
+---------------+
| San Francisco |
| San Jose |
+---------------+
ScopeDB Logo ScopeDB
© 2025 ScopeDB. All rights reserved.