[squid-users] cant download microsoft cert file

Alex Crow alex at nanogherkin.com
Mon Dec 16 08:37:44 UTC 2019


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 <http://microsoft.com>
>     .windows.com <http://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 
<http://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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20191216/254703cb/attachment-0001.html>


More information about the squid-users mailing list