Input :
[a,b], [c,d], [e,f]
select split(col,'\\,') from table_1;
With the above query, am able to split on every comma. (inside and outside the braces)
I need to split only on the commas outside the braces. so i changed the query as below.
select split(col,',(?=\[)') from table_1;
regex which i used is correct as for my knowledge but am not able to get output.
Output required:
"[a,b]","[c,d]","[e,f]"