You might want to read perldoc perlre for more.$bad_chars = qr{[!~?/@]}; # remove any potential bad characters $filename =~ s/$bad_chars//g;
In reply to Re: Removing Bad Characters from a String
by moot
in thread Removing Bad Characters from a String
by kennedymr2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |