in reply to Re^2: Inverse regexes for input validation
in thread Inverse regexes for input validation
The "c" modifier says the match should apply to the complement of the characters cited, and with no characters in the replacement side, "d" says delete all matched characters.my ( $text ) = shift; $text =~ tr/ 0-9A-Za-z-//cd; return $text;
|
|---|