RE: Regular Expressions in XQuery/XPath2

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