momax:We use a lot of regular expressions to parse data files.
I frequently used the following matching pattern ,([^,]*), ie extract the data within the commas.
I now need to search for a double quote followed by a comma..ie ", .
How do I it? [^",] looks for a " OR a , I am interested in a AND...
Any suggestions?
Thanks
The stuff between square brackets (they're called character classes) will only match a single character. The class "[^",]" means: "match any character except a double quote, or comma".
Try this instead:
((?!",).)*