One possibility would be to use a regular expression to remove the characters you don't want:
$str =~ s/[#\-%&\$*+()]//g;If you want to remove everything except alphanumeric characters and underscores, you can simplify it like this:
$str =~ s/\W//g;In reply to Re: Removing Special Characters
by MVS
in thread Removing Special Characters
by Shaveta_Chawla
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |