Would this work aswell refresh_pattern -i /etc/squid/wu.txt /.*\.(cab|exe|ms[i|u|f]|[ap]sf|wm[v|a]|dat|zip) <http://microsoft.com/.*%5C.%28cab%7Cexe%7Cms%5Bi%7Cu%7Cf%5D%7C%5Bap%5Dsf%7Cwm%5Bv%7Ca%5D%7Cdat%7Czip%29> 4320 80% 43200 reload-into-ims
And in wu.txt .microsoft.com .windows.com .windowsupdate.com Exactly like my dstdomain On Mon, 16 Dec 2019, 08:37 Alex Crow, <a...@nanogherkin.com> wrote: > On 16/12/2019 08:06, robert k Wild wrote: > > How can I make a pattern that matches multiple domains please Amos? > > > > >> > refresh_pattern -i .microsoft.com .windows.com >> > .windowsupdate.com/.*\.(cab|exe|ms[i|u|f]|[ap]sf|wm[v|a]|dat|zip) >> <http://windowsupdate.com/.*%5C.(cab%7Cexe%7Cms%5Bi%7Cu%7Cf%5D%7C%5Bap%5Dsf%7Cwm%5Bv%7Ca%5D%7Cdat%7Czip)> >> > < >> http://microsoft.com/.*%5C.%28cab%7Cexe%7Cms%5Bi%7Cu%7Cf%5D%7C%5Bap%5Dsf%7Cwm%5Bv%7Ca%5D%7Cdat%7Czip%29 >> > 4320 >> > 80% 43200 reload-into-ims >> > > > > That's not really a subject for this list - search online for "regex" and > you will see multiple tutorials about it. > > You use a syntax like "(.microsoft.com|.windows.com|( <http://windows.com> > . > windowsupdate.com/.*\.(cab|exe|ms[i|u|f]|[ap]sf|wm[v|a]|dat|zip)|foo.com)" > <http://windowsupdate.com/.*%5C.(cab%7Cexe%7Cms%5Bi%7Cu%7Cf%5D%7C%5Bap%5Dsf%7Cwm%5Bv%7Ca%5D%7Cdat%7Czip)> > > eg (x|y|z(a|b)) would match x, y, za and zb. > > Cheers > > Alex > _______________________________________________ > squid-users mailing list > squid-users@lists.squid-cache.org > http://lists.squid-cache.org/listinfo/squid-users >
_______________________________________________ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users