I have this query that I'm using in Snowflake:
Select *,
case WHEN REGEXP_SUBSTR(NAME, '(?:\[v=)') is not null THEN REGEXP_SUBSTR(NAME, '[[]v=([0-9]+)')
else null
end
from my_table;
but when I try to run it, it tells me:
Invalid regular expression: '(?:[v=)', no argument for repetition operator: ?
but I've tested this out on regex101 here and it looks like its working, I want to check for [v=
Edit: More insight into what I'm trying to find w. the regex, I have rows that look like this test [v=123], words [v=444], more [v=532] and I need to be able to look through each column and find if it has [v= and extract the numbers only