You'll probably reject this because it uses string eval, but it is simple and effective.
$ex = 'p!u-r-*e'; $ctl = 'pure';; eval "\$ex =~ tr[$ctl][]cd;"; print $ex;; pure
In reply to Re: Scurbbing a string
by BrowserUk
in thread Scrubbing a string
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |