Hi I have recently begun to mess around with regex.

I am trying to get text between commas when the comma is not surrounded by brackets.

For example say I have

Code:
a,b,c,a(a,b,c)
And it should match the following...
Code:
a
b
c
a(a,b,c)
But, I am unsure how to do this. Any help would be great.

Thanks.