This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Splitting non-delimited string


Alison,

>Hello,
>
>I have an id that is half numeric and half text.  I need to split it into
>two ids--one numeric, and one text.  The id can be any length, and has no
>delimiters.
>
>From:
><AgencyReportNumber>123ABC</AgencyReportNumber>
>
translate (., '0123456789', '') will delete all the digits leaving you
the letter part, you can then use either substring-before() or
string-length() and substring() to get hold of the digits part.

Trevor Nash
--
Traditional training & distance learning,
Consultancy by email

Melvaig Software Engineering Limited
voice:     +44 (0) 1445 771 271 
email:     tcn@melvaig.co.uk

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]