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

Re: regex negation without !~

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


in reply to regex negation without !~

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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://617319]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 11:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found