Then, technically, the function is accurate:  StripLZero

He needs a function named StripLZeros

:^)

m!ke 

-----Original Message-----
From: James Smith [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2008 10:10 AM
To: CF-Talk
Subject: Re: Trim leading zeros

I just ran...

<cfset myVal = '000000000009970656'>
<cfoutput>
        <p>#reReplace(myVal,'^0','','ALL')#</p>
</cfoutput>

and it does indeed replace only the first 0, it needs "^0+" if you want
to strip them all.

The function doesn't do an recursion and only the first "0" is next to
the start (^) of the string.

--
Jay

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302443
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to