Or you could use tr, refer to perlop: perl -i.bak -pe 'tr/0-9.//cd' file
Add "\n" to the regex or -l to the command line switches to preserve newlines.
--
John.
In reply to Re: reg exps
by jmcnamara
in thread reg exps
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |