Subject: Re: [xsl] lookaheads in XSLT2 regexes From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Fri, 26 Feb 2010 18:29:47 +0100 |
Basically, inside an xsl:analyze-string I am passing a variable as the contents of @regex. In the list of regexes for that get passed to this I'd like to be able to match, say, foo when not followed by an 't' and also match foo when followed by a 't' but not include that 't' in the string being matched.
I'm terrible at regular expressions, but I believe in various regex processors in some languages you are able to do things like foo(?=t) and foo(?!t) to do this and still have the 't' processed separately. Similarly with lookbehinds. Does anything like that exist in XSLT2 regex?
Martin Honnen http://msmvps.com/blogs/martin_honnen/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] lookaheads in XSLT2 regexes, James Cummings | Thread | Re: [xsl] lookaheads in XSLT2 regex, James Cummings |
[xsl] lookaheads in XSLT2 regexes, James Cummings | Date | Re: [xsl] lookaheads in XSLT2 regex, James Cummings |
Month |