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.


Comment on Re: Regex help
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2014-12-21 17:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls