xsl-list
[Top] [All Lists]

RE: Xslt 2 stripping out non-numbers

2005-04-20 11:41:11

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/



--~------------------------------------------------------------------
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>
--~--