>>>> 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. AndreaReceived on Friday, 21 December 2007 16:07:55 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 1 October 2008 00:56:55 GMT