I've looked at several of the Stack Overflow posts with similar titles, and none of the accepted answers have done the trick for me.
I have a CSV file where each "cell" of data is delimited by a comma and is quoted (including numbers). Each line ends with a new line character.
Some text "cells" have quotation marks in them, and I want to use regex to find these, so that I can escape them properly.
Example line:
"0","0.23432","234.232342","data here dsfsd hfsdf","3/1/2016",,"etc","E 60"","AD"8"\n
I want to match just the "
in E 60"
and in AD"8
, but not any of the other "
.
What is a (preferably Python-friendly) regular expression that I can use to do this?