Re: [squid-users] Wildcards for filenames

From: Simon White <simon@dont-contact.us>
Date: Thu, 28 Mar 2002 10:04:32 +0000

28-Mar-02 at 10:55, Hegedus, Ervin (airween@amit.hu) wrote :
> > How can I allow all files "sdatNNNN.exe"?
>
> try some this:
>
> acl exefiles url_regex -i sdat[0-9][0-9][0-9][0-9]\.exe
>
> this acl will works for just sdatNNN.exe format,
> sdatNNNN.exe will not works.

This should read: this will work for sdatNNNN.exe and not sdatNNN.exe or
sdatNNNNN.exe (probably a simple typing mistake I think).

you could try

acl exefiles url_regex -i sdat\d+\.exe

this will match "sdat + one or more digits + .exe"

My syntax has not been checked, my regular expressions are not excellent,
please do some background reading yourself if this does not work.

-- 
[Simon White. vim/mutt. simon@mtds.com. GIMPS:58.28% see www.mersenne.org]
When the bosses talk about improving productivity, they are never talking
about themselves.
[Arbitrary quotes signature rotation, a simple bash script by Simon White]
Received on Thu Mar 28 2002 - 03:04:50 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:07:10 MST