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

Re: [xsl] lookaheads in XSLT2 regexes


Subject: Re: [xsl] lookaheads in XSLT2 regexes
From: Dave Pawson <davep@xxxxxxxxxxxxx>
Date: Tue, 02 Mar 2010 07:48:13 +0000

On 01/03/10 17:52, Michael Kay wrote:

I didn't realise we were missing \b -- we should add it, if that's the case.


I think it was omitted deliberately, on the grounds that it's locale-sensitive. It's defined in Perl as matching "a spot between two characters that has a \w on one side of it and a \W on the other side of it (in either order)", where \w matches a "word" character (defined as "alphanumeric" plus "_"), in which "the list of alphabetic characters generated by \w is taken from the current locale". That's not an acceptable definition for our purposes, so it's arguably better to have no definition at all.


How to apply it to a message from JC the other day?

James Clark (4 days ago from Chromed Bird)
RT @sikkha: `8`88`8`8+`8!`82`8"`9`8#`8`8`8-`8`8#`80`8`8`8*`81`8!`8`8`82`8`9`8!`9`9`8
`9`9`8`87`9`8-`9`8+`9	`9`8`84`8`8`82`8#`9`8`9`8`8`81`8`9`8*`8#`85`9`8`9`8`9	`8`8-`8"`89`9`9`8%`9	`8'





regards

--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk


Current Thread
Keywords