Is it possible to capture nested parenthesis so that group is concluded on same level that it was started. For example:
(A AND (B)) or (C and (D or E) or (F) and G) ->
Should become groups:
1 (A AND (B))
2 (C and (D or E) or (F) and G)
But at the moment this regex doesn't quite do the job:
\([^\(](?:[^\)])*\)