By using tr/// instead of a regular expression:
$ perl -le' my $phone = "(xxx)1234-0000"; $phone =~ tr/)(/-/d; print $phone; ' xxx-1234-0000
In reply to Re: Combining two actions in RegExp
by jwkrahn
in thread Combining two actions in RegExp
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |