Re: includePathStartsWith and initial /

>>>> 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 UTC