Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: how to use "NOT" in regex

by mellon85 (Monk)
on Mar 23, 2011 at 23:34 UTC ( #895151=note: print w/ replies, xml ) Need Help??


in reply to how to use "NOT" in regex

can't you match the strings that start with those two words and then negate the condition? makes more sense to me as a regexp

if (!/^($word1|$word2)/) { # code }


Comment on Re: how to use "NOT" in regex
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2015-07-03 22:06 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 (56 votes), past polls