You want the tr (transliteration) operator:
$name =~ tr/A-Za-z0-9//cd;
--LP^>
In reply to Re: Re: Re: validating form input by TilRMan in thread validating form input by jwlarson3rd