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

Regular Expressions in XQuery/XPath2

From: Jennifer Schachter <jas@decisionsoft.com>
Date: Tue, 15 Oct 2002 11:40:26 -0400 (EDT)
To: <public-qt-comments@w3c.org>
Message-ID: <Pine.LNX.4.33.0210151610060.369-100000@truckee.dsl.local>


In section of the F&O spec, it says that:

"In string mode, the meta-character . matches any character whatsoever. In 
multi-line mode, the meta-character . matches any character except a newline 

This seems to infer that in string mode, the meta-character . should match
the newline character. However, this behaviour would differ from that of
Regular Expressions in XML Schemas: in appendix F of the XML Schema
Datatypes spec the equivalent character class for . is given as [^\n\r].

Can you please verify whether a newline should match the . meta-character 
in string mode? Is the newline character considered 'any character'?


Jennifer "Georgina" Schachter, Software Engineer  
DecisionSoft Ltd.            http://www.decisionsoft.com
Office: +44 (0) 1865 203192
Received on Wednesday, 16 October 2002 03:13:34 UTC

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