Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > BOOK: XSLT Programmer's Reference, 2nd Edition
Password Reminder
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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);


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 01:10 PM.

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