Here is my string:
((A_1:2,B:3):2.1,C_3:1.2,(D:3,(E:4.3,F:2):3.1,):G:1.7);
I need to be able to capture any and all sets of parentheses pairs e.g.
(A_1:2,B:3)
and
(D:3,(E:4.3,F:2):3.1,)
This:
\([^ ]+\)
will capture the entire string, but I can't find a combination of group systems that will capture at least 10 levels of nested parentheses pairs.
I hope to be able to put the captured groups into a data structure so I can parse it more easily. But first, I need to capture the pairs.