I have to write an argument parser, it is passed in as a string ala {a, b, c} delimiter is comma with a space after it, but it can be escaped with a pipe "|" before it. So I was thinking of writing a regex like /[^\|], /
to split by, and then removing all the escape characters afterwards. But when using this it will split by the character before the delimiter as well.
How should I go about accomplishing what I'm looking for?