W3C home > Mailing lists > Public > public-qt-comments@w3.org > October 2002

RE: Regular Expressions in XQuery/XPath2

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Mon, 21 Oct 2002 00:41:38 +0200
Message-ID: <DFF2AC9E3583D511A21F0008C7E621060453DCA6@daemsg02.software-ag.de>
To: Jennifer Schachter <jas@decisionsoft.com>, "Kay, Michael" <Michael.Kay@softwareag.com>
Cc: public-qt-comments@w3c.org, Ashok Malhotra <ashokma@microsoft.com>

> > > Can you please verify whether a newline should match the .
> > > meta-character 
> > > in string mode? Is the newline character considered 'any 
> character'?
> > 
> > Yes, you have read the spec correctly.
> >
> 
> Thank you for that explanation. 
> 
> It follows, then, that the second set of examples in section 
> 6.3.15.3 of
> the F&O spec are incorrect. More precisely:  
> 
>       xf:matches(., "Kaum.*krähen", "m") returns true (example 2)
> 
>       xf:matches(., "^Kaum.*gesehen,$", "m") returns false (example 3)
> 
> 
> I suspect the source data should contain a newline 
> immediately following
> 'gesehen,' as that would solve these problems.
> 
> Cheers, 
> Jennifer

Yes, you are right. The example has been mis-formatted in the published
document. It should be a stanza containing four lines. Thanks for pointing
this out, I will ask the editors to correct it.

Michael Kay


> 
> -- 
> Jennifer "Georgina" Schachter, Software Engineer  
> DecisionSoft Ltd.            http://www.decisionsoft.com
> Office: +44 (0) 1865 203192
> 
> 
> 
Received on Sunday, 20 October 2002 18:41:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:56:43 UTC