Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Negating Regexes: Tips, Tools, And Tricks Of The Trade

by geekphilosopher (Friar)
on Dec 07, 2006 at 14:40 UTC ( #588337=note: print w/ replies, xml ) Need Help??


in reply to Negating Regexes: Tips, Tools, And Tricks Of The Trade

I suppose

my $regexp = /something_here/; do_stuff() unless $foo =~ $regexp;
is cheating, eh? ;)


Comment on Re: Negating Regexes: Tips, Tools, And Tricks Of The Trade
Download Code
Re^2: Negating Regexes: Tips, Tools, And Tricks Of The Trade
by imp (Priest) on Dec 07, 2006 at 14:51 UTC
    That approach is valid, but not appropriate for this context because the regex in question is being passed to WWW::Mechanize as follows:
    $mech->find_all_links(text_regex => qr/download/i);

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (14)
As of 2015-07-07 12:09 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 (88 votes), past polls