it might be clearer.... or perhaps not.while (<FP>) { s/"(.+?),(.+?)"/\1===\2/g; (@row) = split(/,/); foreach (@row) { s/===/,/g; } }
In reply to Re: Regexp nightmare
by Pingu
in thread Regexp nightmare with CSV
by Pingu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |