xsl-list
[Top] [All Lists]

[xsl] xslt regex exclude string from variable used

2013-06-13 04:16:21
Hi,

I'm using the following regex in analyze-string in xslt 2.0 and saxon 9.

(&journal_abbrevs;)[\s ]*([0-9]{{4}})[,][\s ][S]?[\.]?[\s ]?([0-9]{{1,4}})([\s ][(][0-9]{{1,4}}[)])?

&journal_abbrevs; looks like "example1| example2| example3|..."

What I want to do now is exclude a certain string (e.g. example1) from 
&journal_abbrevs for this specific regex.
I found the keyword negative look ahead but I can't get it to work.

Any help would be much appreciated.

cheers



. . . . . . . . . . . . . . . . . . . . . . . . . .
Developer Patrick Szabo
Developer
LexisNexis
A-1030 Wien, Marxergasse 25

mailto:Patrick(_dot_)Szabo(_at_)lexisnexis(_dot_)at
Tel.: +43 1 53452 1573
Fax.: +43 1 534 52 146

. . . . . . . . . . . . . . . . . . . . . . . . . .


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


<Prev in Thread] Current Thread [Next in Thread>