I have a text file that I want to split with RegEx, but the problem is that its syntax is something like this:
["string", "string", [("string", int),("string", int)], int, int, string(int, "string")],
I want to split it using the comma (,) as a delimiter, but as you can see, there are a lot of other commas that I don't want to split (In the example - the ones between () brackets). I tried to use lookarounds, but it didn't work. I'm fairly new to Regular Expressions, so I wanted to ask: Is there a way to determine if the comma is between brackets (but not
next to them...) and split using only the bracket-free commas?