Or with one line of regex code:
$string =~ s/("[^"]*")/local $_=$1; s!,!#!g; $_ /ge;
Yes it won't handle escaped double quotes but if you don't have that edge case it will never matter.
In reply to Re^3: Need help with replace or substitute
by tachyon-II
in thread Need help with replace or substitute
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |