A comma-delimited file is created when exporting google contacts into what they term "Google CSV format (for importing into a Google account)". The issue is this format handles notes on multiple lines by inserting the text in quotes, and allowing CRLF with those quotes.
In other words, imagine a record with Name,Note,Email when it has a multi-line note appears as follows in the .csv file:
Name,"Note FirstLine\r\n
SecondNoteLine\r\n
Lastnoteline",[email protected]\r\n
The Same record with no note field appears as follows, and is in a single line (More standard):
Name,,[email protected]\r\n
I'm trying to form the correct regex expression, and have tried to glean it out of How to use regular expressions in Notepad++ (tutorial) to no avail.
The closest I'v gotten (not very close )
is
,\".*,\"
with . Matching newline.
The expression I'm trying to match is:
"Select the text between ," and ", only when there are one or more /r/n " "and replace with NUL"
So that in the ablove examples both records would be identical and I can get each contact record to appear on a single line, and be able to import it into excel.
At this point, my eyes are bleeding, and any help would be appreciated.