Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Regex help

by mikeirw (Pilgrim)
on Nov 16, 2002 at 13:54 UTC ( #213393=note: print w/replies, xml ) Need Help??


in reply to Regex help

What you want is:

=~ /[^A-Za-z0-9]/

Which could also be written as:

=~ /\W/

...which would also include the underscore in addition to the alphanumeric characters. See perlre for more info.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://213393]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (15)
As of 2017-02-23 15:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (347 votes). Check out past polls.