W3C home > Mailing lists > Public > ietf-http-wg-old@w3.org > January to April 1996

Re: URI Pattern Syntax

From: Dave Kristol <dmk@allegra.att.com>
Date: Fri, 23 Feb 96 15:29:38 EST
Message-Id: <9602232029.AA13359@aleatory.tempo.att.com>
To: hallam@w3.org
Cc: http-wg%cuckoo.hpl.hp.com@hplb.hpl.hp.com
  > [...]
  > Level 0 Specification - Prefix Matching.
  > 
  > The most common need for template matching is to specify a prefix.
  > 
  > In the level 0 specification a wildcard is only valid at the end of the
  > pattern. Implementations need only match on a prefix therefore. The
  > following are valid level 0 patterns:
  > 
  > http://www.w3.org/pub/%*
  > http://www.w3.org/p%*
  > http://www.w3.org/pub/

I have found it useful to have a pattern, call it %?, that matched '/*'
or the empty string, as in
	http://www.w3.org/pub%?

that matches
	http://www.w3.org/pub
	http://www.w3.org/pub/
	http://www.w3.org/pub/WWW/
but not
	http://www.w3.org/public

Dave Kristol
Received on Friday, 23 February 1996 12:41:34 EST

This archive was generated by hypermail pre-2.1.9 : Wednesday, 24 September 2003 06:31:46 EDT