Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 surveying the Monastery: (13)
As of 2015-07-03 13:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (53 votes), past polls