I have a string that looks like this:
abc[1,2,3].something.here,foo[10,6,34].somethingelse.here,def[1,2].another
I want to split this string into an array that consists of:
abc[1,2,3].something.here
foo[10,6,34].somethingelse.here
def[1,2].another
But splitting on the comment won't work so my next idea is to first replace the commas that reside between the square brackets with something else so I can split on the comma, then replace after the fact.
I've tried a few approaches with little success.. Any suggestions?