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

Re: Reg ex error for in/excludeiripattern (formal doc)

From: Stasinos Konstantopoulos <konstant@iit.demokritos.gr>
Date: Thu, 18 Dec 2008 15:13:54 +0200
To: Phil Archer <phil@philarcher.org>, Public POWDER <public-powderwg@w3.org>
Message-ID: <20081218131354.GE4021@iit.demokritos.gr>
Forgotten to also apply Phil's fixes to the references.
Please override previous email with this.

s


On Thu Dec 18 14:29:08 2008 Stasinos Konstantopoulos said:

> Corrected in attachment.
> 
> s
> 
> 
> On Thu Dec 18 11:47:58 2008 Phil Archer said:
> 
> > Working through the implementation feature list I've detected an error  
> > in one of the regexes (annoying since I could have sworn I've tested all  
> > those to destruction already. Ah well, you can never test things too 
> > much).
> >
> > Just above example 4-3 in the Formal Doc [1] the asterisk just before $1  
> > in this line:
> >
> > Else if h matches the regular expression ^\*\.(.*) then let h be  
> > ([^\:\/\?\#\@]+\.)*$1 where $1 refers to ^\*\.(.*)
> >
> > Should be a +.
> >
> > This is because the IRI pattern *.example.com is meant to match all  
> > subdomains of example.com but not example.com itself. In other words you  
> > must have at least one ([^\:\/\?\#\@]+\.) before the .example.com -  
> > which is what + does (* matches even if there's no subdomain).
> >
> > Phil.
> >
> > [1] http://www.w3.org/TR/2008/WD-powder-formal-20081114/#eg4-3




Received on Thursday, 18 December 2008 13:15:11 GMT

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