I have a javascript utility and need so help with regular expressions..
Basically I have lines of data that consists of name=value pairs delimited with commas.
example
match=type abc{0,4}D,search=(.*?) (.*?) (.*),replace=$2 $1 $3
The problem I have is sometimes as in the example a value may have a comma in it. In these cases in the value will be with a quoting mechinism,
That include "value", 'value', (value), [value], and {value}.
I need a way to replace the commas inside the quote mechinism with something else so the split of the name value pairs works properly.
After the split I need to restore the commans in the values that had them.
Any assistance would be greatly appreciated.