I have an long string with the syntax
'item_name (price + tax), item_name (price + tax), item_name (price +tax)'
that I want to get into the rows: item_1, price_1, item_2, price_2, etc.
I used the below methods to get item_1 and item_2 but I can't seem to pull the prices out because I get an error with REGEXP_SUBSTR(items,'([^-]+',1,1) due to the "(". What am I doing wrong?
,REGEXP_SUBSTR(items,'[^-]+',1,1) as item_1 ,SUBSTRING( REGEXP_SUBSTR(items,',[^-]+',1,1) ,2 ,LEN(REGEXP_SUBSTR(items,',[^-]+',1,1))-2 ) as item_2