Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
more useful options
 
PerlMonks  

Re: regex negation without !~

by cengineer (Pilgrim)
on May 24, 2007 at 19:21 UTC ( #617319=note: print w/ replies, xml ) Need Help??


in reply to regex negation without !~

if (!($str =~ /^FOO$/)) { //do something for no match }


Comment on Re: regex negation without !~
Download Code
Re^2: regex negation without !~
by imp (Priest) on May 24, 2007 at 19:24 UTC
    This approach won't work, as he is passing the regex to another module. The regex itself has to evaluate as false.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2013-05-20 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (402 votes), past polls