[squid-users] Refresh pattern issue in squid 3.1.20

Amos Jeffries squid3 at treenet.co.nz
Mon Dec 28 04:54:58 UTC 2015

On 28/12/2015 5:30 p.m., SaRaVanAn wrote:
> Thanks for prompt response.
> I want to match all the URL's which has a pattern of "wsj" (example: *.
> wsj.com, *.wsj.net, *.wsj.edu ) . Does wildcard makes sense in squid
> refresh pattern? Can we have something like this?
>  refresh_pattern -i ^http://*\.wsj\.*/ 10 200% 10 \
>     override-expire reload-into-ims

Of course. It is a regex pattern. The problem is your own understanding
of regex, so the patterns you are designing are not doing anything like
what you want.

<http://regexone.com/> might help you there.


More information about the squid-users mailing list