Re: [squid-users] Regular Expression

From: Matus UHLAR - fantomas <uhlar@dont-contact.us>
Date: Sun, 5 Aug 2007 18:35:57 +0200

On 02.08.07 11:30, Enrico Popp wrote:
> I have an problem with regular expression in squidGuard. I'm using the
> following regex
>
> s@http://www.main.example.org/(.+)@http://www.example.org@r

where did you get the regex?

> Now the problem consists that http://example.org contain no querystring
> after this rewrite.

s@http://www.main.example.org/@http://www.example.org/@r

should work, but I'm not sure what does the 'r' modifier do... something
squidguard-ish ?

> Could you please help me to understand this regular
> expression.

man perlre should help you

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I just got lost in thought. It was unfamiliar territory. 
Received on Sun Aug 05 2007 - 10:36:03 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Sep 01 2007 - 12:00:03 MDT