Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How to extract all alphanumeric characters from a string?

by ikegami (Patriarch)
on Nov 13, 2009 at 21:13 UTC ( [id://807062]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    utf8::upgrade( my $alphanums = $chars );
    $alphanums =~ s/[\W_]//g;
    
  2. or download this
    ( my $alphanums = $chars ) =~ s/\P{Alnum}//g;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://807062]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-26 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found