Re: [squid-users] Regular Expression

From: Henrik Nordstrom <[email protected]>
Date: Tue, 07 Aug 2007 12:36:34 +0200

On tor, 2007-08-02 at 11:30 +0200, Enrico Popp wrote:
> Hello
>
> 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
>
> Now the problem consists that http://example.org contain no querystring
> after this rewrite. Could you please help me to understand this regular
> expression.

What the above says:

substitute http://www "any character" main "any character" example "any
character" org/ "one or more characters as many as there is" with the
string "http://www.example.org"

Reservation: Not sure what the r modifier is about. Haven't seen that
before.

Regards
Henrik

Received on Tue Aug 07 2007 - 04:36:44 MDT

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