I tried both of these, but neither one worked:
$user_name =~ s/[a-zA-Z0-9]//g; $user_name !~ s/[a-zA-Z0-9]//g; [download]
In reply to How do I keep anything other than alphanumeric out of a variable? by Anonymous Monk