[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] analyze-string help?


Subject: Re: [xsl] analyze-string help?
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Sun, 10 Jun 2012 21:43:42 +0100

> In my ideal world the syntax would evolve so you could constrain the categories -- "\p{Pd except '-'}", "any character that is some kind of dash except for U+002D "hyphen-minus", for example -- since that would make this even more useful for functions that take regular expressions such as tokenize().

XPath regular expressions allow a subtraction operator within a character class:

[\p{Lu}-[IO]]

allows any upper case letter except I or O.

Michael Kay
Saxonica


Current Thread