- From: Pete Cordell <petexmldev@tech-know-ware.com>
- Date: Wed, 9 Aug 2006 10:14:19 +0100
- To: <xmlschema-dev@w3.org>
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 UTC