how to write a regex to remove extra commas from string for making a csv:-
Explanation:-
Basically I am getting this kind of data in a string:-
$string = 'abc,bcd,cdf, "af,cv"'
this is a sample string and I want to make csv from that string. Now I want to remove that extra comma between af and cv but not the other commas. Can someone help in writing the regex.