Am currently using the following two regex lines:
$name =~ s/[^a-zA-Z0-9\-\"\'\ \.\?\!"]//g; $name =~ s/^\s+|\s+$//g;
It's not really a big deal, but for the sake of cleaner coding, is there a way to clean the two lines up?
p.s. Am just trying to remove strange characters. i.e.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |