Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Regex for QNames

From: "Michael Kay" <mike@--------.--->
To: "'Florent Georges'" <darkman_spam@-----.-->, <xmlschema-dev@--.--->
Date: 2/9/2007 12:38:00 PM
> 
>   I need the regular expression for a QName.  From =A7F.1 
> Character Classes [WXS-2] 
> (http://www.w3.org/TR/xmlschema-2/#charcter-classes),
> I thought the following would be correct:
> 
>     [\i-:][\c-:]*:[\i-:][\c-:]*
> 

I think you're trying to use "-" here for subtraction. For that you need =
the
second operand to be in square brackets:

[\i-[:]][\c-[:]]*

Otherwise it's interpreted as a range, like [a-z], and it's not a valid
range because \i represents a character class rather than a single
character.


Michael Kay
http://www.saxonica.com/



From darkman_spam@y... Fri Feb 09 13:10:59 2007
Received:


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent