I know similar questions are available but I could not find this case.
CASE 1: 'a,b,c,d,e'
OUTPUT: ["a", "b", "c", "d", "e"]
CASE 2: 'a,b,"c,d", e'
OUTPUT: ["a", "b", "c,d", "e"]
CASE 3: 'a,,"c,d", e'
OUTPUT: ["a", "", "c,d", "e"]
RegEx that I tried: (".*?"|[^",]+)(?=\s*,|\s*$)
RegEx Link: https://regex101.com/r/xImG4i/1
This regex works well with CASE1 and CASE2 But is failing for CASE3. Insead it works for
'a, ,"c,d", e', giving output as ["a", " ", "c,d", "e"]
which is also fine but need to work for CASE3 also.
Thanks in advance!