I'm having some trouble while trying to split a string with a nested separator.
My String would be like "(a,b(1,2,3),c,d(a,b,c))"
.
How could I get an array ["a","b(1,2,3)","c","d(a,b,c)"]
?
I obviously can't use .split(",")
, since it would also split my sub-strings.