I want to remove all double quotes using regex in CSV file if its coming between double quotes. Currently I am using following regex to do this :
inputString = Regex.Replace(inputString, @"([^\^,\r\n])""([^$,\r\n])", @"");
But it doesn’t work if I have more than two double quotes, for ex:
"This is my "test" string" (works)
"This "is" my "test" string" (doesn’t work)
"This is" my test string" (doesn’t work)
I need a generic regex which can just remove any double quotes between double quotes in csv file.
Use this: