P is for Practical | |
PerlMonks |
Re: cleaning up control charactersby jeroenes (Priest) |
on Oct 27, 2001 at 00:51 UTC ( [id://121694]=note: print w/replies, xml ) | Need Help?? |
Take a look in perlre. \D is the non-digit class, but maybe that isn't what you want. You'd better look up which control chars you can encounter there and use an custom class. Something like:
While we're at it, why not simplify it to a one-liner? See perlrun for nifty options... the 'i' is also very useful. Cheers, Jeroen Update Listen to blackmateria. Of course you use the :cntrl: POSIX class.. much more convenient.
In Section
Seekers of Perl Wisdom
|
|