http://www.perlmonks.org?node_id=487674


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

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)$/