Re: What format of ttl?

From: Miguel L. Dimayuga <mld@dont-contact.us>
Date: Wed, 16 Oct 1996 03:23:07 +0800 (PST)

On Tue, 15 Oct 1996, Vladimir Litovka wrote:

> Hello!
>
> Can anybody explain me format of 'ttl-pattern'?
>
> ttl_pattern ^http:// 5040 20% 43200
> ttl_pattern ^ftp:// 10080 50% 43200
> ---- What is '^'?

Following regex standards, "^" means the pattern "http" must be at the
beginning of the
line. In the same vein, ^ftp means the word "ftp" must be at the
beginning of the line.

>
> ttl_pattern \.gif$ 10080 50% 43200
> ---- What is '$'?

This is the reverse. "$" means the end of the line. So here, "gif" has
to occur as the last word on the line (or of the URL pattern)
 
> And how I can set *.jp*, for example (thinking about *.jpg, *.jpeg and
> *.jp_)?

Correct me people, if I am mistaken here, but I'd do it this way.
"\.jp.$" and "\.jp..$"

The "." should match any single character.

Migs =)
Received on Tue Oct 15 1996 - 12:23:45 MDT

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