more useful options | |
PerlMonks |
Re: String Search/Replaceby ChrisR (Hermit) |
on Aug 31, 2005 at 15:07 UTC ( [id://488133]=note: print w/replies, xml ) | Need Help?? |
How about a regex:
Or for a one liner:
Update: Oops... As cheseter has pointed out, the above will replace 1000 when it should not. Here's my regex that works: or at least I think it does.
In Section
Seekers of Perl Wisdom
|
|