[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

\d meaning (Was: Re: xhtml.xsd error?)

From: Pete Cordell <petexmldev@tech-know-ware.com>
Date: Wed, 9 Aug 2006 10:14:19 +0100
Message-ID: <005301c6bb94$388ce6f0$5000a8c0@RW>
To: <xmlschema-dev@w3.org>
meaning of re

On the topic of matching numbers...

The spec says that \d is equivalent to \p{Nd}.

By my reading of the Unicode tables, \p{Nd} not only includes the characters
0-9, but also equivalents in other languages, such as "0660;ARABIC-INDIC
DIGIT ZERO;Nd", "06F0;EXTENDED ARABIC-INDIC DIGIT ZERO;Nd;",
"0966;DEVANAGARI DIGIT ZERO;Nd;", "09E6;BENGALI DIGIT ZERO;Nd;",
"0A66;GURMUKHI DIGIT ZERO;Nd;" and so on and so on.

Does this mean that for a lot of business logic cases people might be best
advised using [0-9] in their patterns rather than \d?

And for my illumination, I assume most peoples of the world (that are likely
to come into contact with XML either directly or indirectly) would be
familiar with the digits 0-9 from the international language of mathematics.
Is this the case?

Thanks,

Pete.
--
=============================================
Pete Cordell
Tech-Know-Ware Ltd
                         for XML to C++ data binding visit
                         http://www.tech-know-ware.com/lmx
                         (or http://www.xml2cpp.com)
=============================================
Received on Wednesday, 9 August 2006 09:15:12 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.