REGEXP_LIKE

functionsupportedCore SQL functions

docs.snowflake.com ↗

String functions (regular expressions)

Performs a comparison to determine whether a string matches a specified pattern. Both inputs must be text expressions. REGEXP_LIKE is similar to the LIKE function, but with POSIX extended regular expressions instead of SQL LIKE pattern syntax. REGEXP_LIKE supports more complex matching conditions than LIKE. Tip You can use the search optimization service to improve the performance of queries that call this function. For details, see Search optimization service. Aliases: RLIKE (1st syntax)

Syntax

supportedpartialnot supportednot scored

REGEXP_LIKE( <subject> , <pattern> [ , <parameters> ] )

Parameters

NameRequiredDescription
subjectrequiredThe string to search for matches.
patternrequiredPattern to match. For guidelines on specifying patterns, see String functions (regular expressions).

Returns

Returns a BOOLEAN value or NULL: - Returns TRUE if there is a match. - Returns FALSE if there isn’t a match. - Returns NULL if any argument is NULL.

Usage notes

Collation Details

Arguments with collation specifications currently aren’t supported.