Re: [squid-users] OT: Squirm prob

From: Colin Campbell <sgcccdc@dont-contact.us>
Date: Thu, 27 Jun 2002 08:34:32 +1000 (EST)

Hi,

On Wed, 26 Jun 2002, Bgs himself wrote:

> I have patterns like the following:
>
> regexi ^http://www.babilon.hu.*$ http://10.0.0.2/\1 ^http://www.babilon
>
> When I test is manually:
>
> http://www.babilon.hu/foo 127.0.0.1/- - GET
> http://10.0.0.2/\1 127.0.0.1/- - GET
>
> The \1 data buffer isn't working. I don't know what's the problem.

Most of the regexp usage I know requires you to "save" bits you want to
use later. I'd try something like:

regexi ^http://www.babilon.hu\(.*$\) http://10.0.0.2/\1

Colin

--
Colin Campbell
Unix Support/Postmaster/Hostmaster
CITEC
+61 7 3227 6334
Received on Wed Jun 26 2002 - 16:34:45 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:08:50 MST