Search squid archive

Re: Regular Expression

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux