[osis-core] Supplemental on regex
Patrick Durusau
osis-core@bibletechnologieswg.org
Wed, 02 Jul 2003 06:42:04 -0400
Guys,
Still tinkering with the regex.
What is odd is that:
<xs:pattern value="x-([x0000-x10FFFF-[\p{P}\p{Z}\p{C}]])+"/>
Works but:
<xs:pattern value="x-([#x0000-#x10FFFF-[\p{P}\p{Z}\p{C}]])+"/>
As found at the W3C site: [#x0000-#x10FFFF]-[\p{P}\p{Z}\p{C}]
(http://www.w3.org/TR/xmlschema-2/) does not.
Note that with \p{P} included, then "x-ab.c" becomes invalid, so it
appear that the regex is working.
What is really odd is that I can't get "x-ab.c" to validate even if the
regex is: "x-([x0000-x10FFFF])+". Validates "x-abc" but not "x-ab.c".
Very odd.
Suggestions?
Thanks!
Hope everyone is waking up to a great day!
Patrick
--
Patrick Durusau
Director of Research and Development
Society of Biblical Literature
Patrick.Durusau@sbl-site.org
Chair, V1 - Text Processing: Office and Publishing Systems Interface
Co-Editor, ISO 13250, Topic Maps -- Reference Model
Topic Maps: Human, not artificial, intelligence at work!