RE: [xsl] Transforming/trimming text in XSLT 2.0

Subject: RE: [xsl] Transforming/trimming text in XSLT 2.0
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 4 Jul 2006 19:05:15 +0100
> > Basically I am looking for a way to capture all the text 
> that appears 
> > after the last colon.
> 
> replace($in, ':([^:]*)$', '$1')

Alternatively, and perhaps more legibly,

tokenize($in, ':')[last()]


Michael Kay
http://www.saxonica.com/

Current Thread