I would like the regular expression to match the string
"abc", "d,e" , "", ",f"
so that the groups abc , d,e ,,,, and ,f (without quotes) are separately matched.
With a group
"([^"]*)"
matching the "abc" bit, I assumed that the regular expression
(?:\s*"([^"]*)"\s*,)\s*"([^"]*)"\s*
would do the trick. However, it corresponds only to abc and d,e .
I created an example toy in regex101 that shows the behavior.
Any clues?
source share