30 October 2018        Add to Favorites   Report

Query to find wildcard / special characters in Snowflake REGEXP_LIKE

Problem statement: To find all the records with special characters (with characters outside the range a-Z0-9)

Solution:

SELECT * FROM MY_TABLE WHERE REGEXP_LIKE(ColumnA, '.*[^a-zA-Z0-9].*');


Copied