W3C home > Mailing lists > Public > public-powderwg@w3.org > December 2007

Re: includePathStartsWith and initial /

From: Andrea Perego <andrea.perego@uninsubria.it>
Date: Fri, 21 Dec 2007 17:12:28 +0100
Message-ID: <476BE5EC.40908@uninsubria.it>
To: Jeremy Carroll <jjc@hpl.hp.com>
CC: public-powderwg@w3.org

>>>> mailto:jeremy.carroll@hp.com
> 
> (([^:/?#]+):)?(//([^:/?#@]*)(:([0-9]+))?)?([^?#]*)(\?([^#]*))?
> 
> (([^:/?#]+):) matches mailto:
> (//([^:/?#@]*)(:([0-9]+))?)? does not match any sequence stating j
> so
> (//([^:/?#@]*)(:([0-9]+))?)? matches the empty string
> ([^?#]*) then matches the remainder
> and
> (\?([^#]*))? matches the empty string.
> 
> ahh, you've left off the fragment in the regex.

Sorry, my fault, Jeremy. I've forgotten that "The authority component is
preceded by a double slash (//)" and to accurately re-read the RFC,
where it is said "For example, the URI <mailto:fred@example.com> has a
path of fred@example.com".

> Also see section 3 of RFC 3986, the example at the bottom of page 15
> shows a path  example:animal:ferret:nose in the URI
> urn:example:animal:ferret:nose

This settles also my other question.

Andrea
Received on Friday, 21 December 2007 16:07:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:42:12 GMT