I have string "xyz(text1,(text2,text3)),asd" I want to explode it with , but only condition is that explode should happen only on ,
which are not inside any brackets (here it is ()
).
I saw many such solutions on stackoverflow but it didn't work with my pattern. (example1) (example2)
What is correct regex for my pattern?
In my case xyz(text1,(text2,text3)),asd
result should be
xyz(text1,(text2,text3))
and asd
.