in reply to Re^2: Need help with replace or substitute
in thread Need help with replace or substitute
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Need help with replace or substitute
by Anonymous Monk on Apr 13, 2008 at 10:20 UTC | |
by tachyon-II (Chaplain) on Apr 13, 2008 at 10:29 UTC | |
|
Re^4: Need help with replace or substitute
by Anonymous Monk on Apr 13, 2008 at 10:23 UTC |