Hello, fellow.
You shall use this:
s/([^,])\"([^,])/$1\"\"$2/g;
I unfortunatelly have no data where to test this. Please let me know if I made a mistake. I will gladly correct the problem for you.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Just Another Perl Monk
In reply to Re: Repairing bad CSV
by monsieur_champs
in thread Repairing bad CSV
by iburrell
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |