Welcome to the Monastery | |
PerlMonks |
Re: cleaning up control charactersby monkfish (Pilgrim) |
on Oct 27, 2001 at 00:52 UTC ( [id://121695]=note: print w/replies, xml ) | Need Help?? |
I just changed your regular expression to match 0 to 2 control chars and replace them with nothing otherwise I did not touch the code. [:cntrl:] is the key to matching any control chars.
-monkfish (the fishy monk) Edit fixed error with \C[
In Section
Seekers of Perl Wisdom
|
|