Re: [squid-users] regex wildcard for refresh_pattern

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 18 Jun 2008 14:26:24 +1200 (NZST)

> 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
Received on Wed Jun 18 2008 - 02:26:26 MDT

This archive was generated by hypermail 2.2.0 : Wed Jun 18 2008 - 12:00:03 MDT