Re: [squid-users] refresh_pattern: regexp for trailing slash urls?

From: Henrik Nordstrom <hno@dont-contact.us>
Date: 15 Jan 2003 15:50:34 +0100

ons 2003-01-15 klockan 11.53 skrev SamKat:

> Are either the following two lines containing the correct regular
> expression?
> 1) refresh_pattern -i /$ 20160 90% 43200
> 2) refresh_pattern -i \/$ 20160 90% 43200
>
> If so, which one? If not, then can you provide me with an example?

Both are fine actually. / does not need to be escaped with \ as it is
not a special character in regex, but it won't hurt you if you do except
that it might be a little harder for humans to read your pattern if it
has lots of unneeded \ in it..

Regards
Henrik
Received on Wed Jan 15 2003 - 07:50:39 MST

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