Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Regex for QNames >Thread Next - how to guarantee elements order RE: Regex for QNamesTo: "'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: | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
