How to change the following regex:
(?:(^|,)(?<quote>"|)(?<value>.*?)(\k<quote>)(?=(,|$)))
which works with:
1,1,-1
... I get "1","1","-1"
and works with:
"1","1","-1"
... I get "1","1","-1"
but it doesn't work as expected when one or more or the substrings are empty:
,1,-1
...in such case I need to get: "", "1", "1"
,"1","-1"
...in such case I need to get: "", "1", "1"
,"1",
...in such case I need to get: "", "1", ""
,,
...in such case I need to get: "","",""
Is that possible?