more useful options | |
PerlMonks |
Re: Re: leaving only [a-zA-Z0-9]by Happy-the-monk (Canon) |
on Mar 21, 2004 at 14:18 UTC ( [id://338454]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|