Relative Content

Tag Archive for sqlregex

SQL Regex Microsoft SQL Server Managment Studio

I need some hel with a regex in SQL.
I need to make a regex to check if a string contains a substring like this: [—– (to)]
This regex have to find a substring that start after “[” and that ends before ” (to)]”.

REGEXP_SUBSTR() returns NULL in Snowflake

I have a string in Snowflake. I want to extract the numbers after this keyword: “SCHED-MIN-PYMT_AMT:”. The numbers are with 2 decimal points. I tried this and it returns null: