Hello,

I am trying to make a regex that will match strings between a comma only if the comma is outside of complete brackets. Brackets inside of " " should not count. Examples below.

one(1,2),two(3,4)
should match:
one(1,2)
two(3,4)

test(ok(1,2),2),another(5,testing(3,4))
should match:
test(ok(1,2),2)
another(5,testing(3,4))

A more complex finale:
test(check(onemore(ok,4,9),"no"),"(","2","3"),next("forward",ok(34.2),"3,2,5"),last(1,2)

This should match:
test(check(onemore(ok,4,9),"no"),"(","2","3")
next("forward",ok(34.2),"3,2,5")
last(1,2)

Thanks in advance.