Search squid archive

Re: regex wildcard for refresh_pattern

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Is the regex wildcard for refresh_pattern a '.*' or just a '.'.

. and * have the same meaning in Squid as in any other regex system. We
use the OS regex libraries to interpret them.
'.' means any single character, * means none-or-more repeating.


> I want to apply a pattern match to some specific jar files that fit a
> pattern of 'name.jar-serialnumber.zip'
>
>
> Would the correct pattern match then be 'refresh_pattern -i name.jar.*'
> ?

Just to be sure it only matches them, I'd use:
   -i name\.jar-[^\.]+\.zip

Amos


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux