The best definition of an embedded quote I've thought up for this situation is: If the quote isn't followed by a comma, assume it's an embedded quote.
# Fix embedded quotes. s/"(?![",])/""/g;
To remove the spaces before the commas, just do it after using Text::CSV_XS.
That's what I get for trying to answer a question on my way out.
In reply to Re: CSV cleanup problem...
by ikegami
in thread CSV cleanup problem...
by devnul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |