I have a string looking somewhat like this:
s = "'value 1', 'value 2', 'foo, bar'"
What I'd like to end up with is an array like this:
arr = ["value 1", "value 2", "foo, bar"]
Obviously I can't just split by comma, because there can be commas in the substrings themselves. Does anyone have a clue how to do this?