Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > BOOK: XSLT Programmer's Reference, 2nd Edition
| Search | Today's Posts | Mark Forums Read
BOOK: XSLT Programmer's Reference, 2nd Edition
This is the forum to discuss the Wrox book XSLT: Programmer's Reference, 2nd Edition by Michael Kay; ISBN: 9780764543814
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: XSLT Programmer's Reference, 2nd Edition section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 28th, 2009, 01:30 AM
Registered User
Join Date: Jul 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default REMOVE leading zero and alpha characters in string in XSL...


i have a code in C language

Basically i want to remove leading zero and alphabets from string


000C77499 should become 7749
000wert499 should become 499
00erty100 should become 100

I want to do it in XSL . PLEASE HELP

In the below CODE above objective is already achieved in C language

CString Buff = "000C77499";
int len = Buff.GetLength();
int index = 0;
for(int len1 = Buff.GetLength(); len1>0;len1--)
if(0 != isdigit(Buff.GetAt(len1-1)))
Buff = Buff.Mid(len-index,len);


Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for alpha in a string abbylee26 Javascript How-To 2 April 12th, 2011 06:44 PM
REMOVE leading zero and alpha characters in string in XSL... san_yacha XSLT 3 July 28th, 2009 04:06 AM
How to remove remove elements deep using xsl Prabeen XSLT 1 May 5th, 2009 12:55 AM
Removing leading zeros from a string value vikkiefd XSLT 2 June 12th, 2008 03:30 AM
Remove Leading and Trailing Zeros lene_wee SQL Server 2000 3 April 1st, 2008 08:23 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.