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].*');



Read great educational content like this and a lot more ! Create my free account now 🎁

Copied