you can also use $a =~ s/\W//g;
make that s/[\W_]//g; to take away the _ too.
And careful with locale! That will not get rid of Umlauts and word characters with accents and such. It will still get rid of special characters though.
Sören
In reply to Re: Re: leaving only [a-zA-Z0-9]
by Happy-the-monk
in thread leaving only [a-zA-Z0-9]
by TriggerDunpoe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |