Re: What format of ttl?

From: David Luyer <luyer@dont-contact.us>
Date: Wed, 16 Oct 1996 15:33:48 +0800 (WST)

On Wed, 16 Oct 1996, Martin Ibert wrote:
>> \.jp..$ won't cut it because it only catches jpeg files, not jpg files.
>> And \.jp.$ is dangerous because it matches http://some.domain.jp/
>> (or am I overlooking something?)!
>>
>> So when you need two patterns anyway, why not use \.jpg$ and \.jpeg$
>> ?

What is particularly wrong with \.jpe?g$ ?

Assuming squid uses standard regexps...

\. - a dot. :)
e? - zero or one e's.
$ - end of line.

From regexp(6):

       The REP operators match zero or more (*), one or more (+),
       zero or one (?), instances respectively of the preceding
       regular expression e2.

Remember, unix is one of the best documented systems you will find -
read the manual pages! (of course, if squid has its own flavour of
regexps, this is wrong:)

David.
Received on Wed Oct 16 1996 - 00:35:21 MDT

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