Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Replace only selected charactersby herveus (Prior) |
on Oct 14, 2011 at 18:04 UTC ( [id://931565]=note: print w/replies, xml ) | Need Help?? |
Howdy!
Instead of answering directly, I ask you to consider what the "g" and "i" flags do. Think carefully about everything your search expression actually says. Do the parts work together the way you want them to? Try carefully applying your replace manually. Alternately, express more clearly what you are trying to accomplish with your replace.
yours, Michael
In Section
Seekers of Perl Wisdom
|
|