Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Negative expressions with alternation in ProxyRemoteMatch

by redhotpenguin (Deacon)
on Aug 30, 2005 at 07:21 UTC ( [id://487662]=note: print w/replies, xml ) Need Help??


in reply to Re: Negative expressions with alternation in ProxyRemoteMatch
in thread Negative expressions with alternation in ProxyRemoteMatch

Thanks for the help, this is what I was trying to do. Works great, and it makes sense that the '?!' (whabang?) is at the start of the alternation.
  • Comment on Re^2: Negative expressions with alternation in ProxyRemoteMatch

Replies are listed 'Best First'.
Re^3: Negative expressions with alternation in ProxyRemoteMatch
by Roger (Parson) on Aug 30, 2005 at 08:58 UTC
    An alternative is to use negative look behind... Your code was actually negative look ahead. To look behind, you need the < directive.

    /(?<!\.gif)(?<!\.jpg)(?<!\.jpeg)$/

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-25 23:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found