[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Negative lookahead/behind in XSL regexp

Subject: Re: Negative lookahead/behind in XSL regexp
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Mon, 9 May 2011 09:41:56 +0100
Re:  Negative lookahead/behind in XSL regexp
On 9 May 2011 09:32, Clint Redwood <clint@xxxxxxxxxxxxxxx> wrote:
> 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?

Hard to say without sample inputs and outputs... could you add another
step after the regex processing and exclude the key word there?


--
Andrew Welch
http://andrewjwelch.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.