I read the question and answer and this is not a duplicate. I would like to find all comma and split the string by them which are outside of all parenthesis. Consider the following string
abc(def(100, test(2, 3, 5)), tttt), 1111
It would be splitted then to 2 substrings:
abc(def(100, test(2, 3, 5)), tttt)
1111
The only ,
which is outside of any parenthesis in the string is , before 1111.
Is there a way to so with regex?