[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Xslt 2 stripping out non-numbers


Subject: RE: [xsl] Xslt 2 stripping out non-numbers
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 20 Apr 2005 19:41:11 +0100

> I need to strip out non-numerical values from a string.  
> 
> Here is a sample input value:  TUV0062
> 
> And what I want is :  0062  (or just 62)
> 
> What is the correct way to do this using XSLT 2?
> 

replace($in, '[^0-9]', '')

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


Current Thread
Keywords