sql_matches
sql_matches
returns whether or not the SQL query matches a particular regular expression pattern.
SQL_MATCHES(<pattern>)
SQL_MATCHES((<pattern>), <parameters>)
<pattern>
- The regular expression pattern to match.
<parameters>
- Parameters control the behavior of regular expression. The parameters are the same as Snowflake regular expression parameters.
TRUE
- If the pattern matches the SQL query.
FALSE
- If the pattern doesn’t match the SQL query.
- The pattern is a covering pattern, the same as Snowflake’s RLIKE.
SQL_MATCHES('.*\d{2}.*')