[xsl] Negative lookahead/behind in XSL regexp

Subject: [xsl] Negative lookahead/behind in XSL regexp
From: Clint Redwood <clint@xxxxxxxxxxxxxxx>
Date: Mon, 9 May 2011 09:32:16 +0100
Hi,

I'm using regexp in XSL to process input text data into a selection of fixed
values. This works for most of my requirements but I have one key word which I
need to exclude if preceded by one word or followed by another. It appears
that lookahead and lookbehind are not included in the XSL2.0 specification, so
I'm looking for an alternative way of doing it.

The only way I've found so far involves lots of nested groups with negated
character classes and is very messy with long words.

Anyone got a neat way of doing it?

Yours,

Clint Redwood

Screwtape Limited, Registered 06663232, Babington House, 26 College Road,
Chilwell, Nottingham NG9 4AS

Current Thread