in reply to Re: leaving only [a-zA-Z0-9]
in thread leaving only [a-zA-Z0-9]
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: leaving only [a-zA-Z0-9]
by neniro (Priest) on Mar 21, 2004 at 14:38 UTC |
In Section
Seekers of Perl Wisdom