Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to Re: cleaning up control characters
by jeroenes
|
|