I have a SSIS package importing data from a .csv file. This file has doulbe quotes (") qualifiers for each entry in it but also in between. I also added commas (,) as a column delimiter. I can't give you the original data I'm working with but here is an example how my data is passed in Flat File Source:
"ID-1","A "B"", C, D, E","Today"
"ID-2","A, B, C, D, E,F","Yesterday"
"ID-3","A and nothing else","Today"
As you can see the second column can contain quotes (and commas) which smashes my SSIS import with an error pointing at this line. I'm not really familiar with regular expressions, but I've heard that this might help in this case.
In my eyes I need to replace all the double quotes (") by single quotes (') except...
- ...all quotes at the beginning of one line
- ...all quotes at the end of one line
- ...quotes which are part of
","
Can anyone of you help me out in this thing? Would be great!
Thanks in advance!
Band just one before it (the first row)? This does not look like a proper formatting. - Nikola Malešević"ID-1","A ""B"", C, D, E","Today"- Ωmega