str = "aabbcc0000"

#reverse(right(reverse(str),len(str)-(ReFind("0[^0]",reverse(str)))))#

This will remove all nulls from the right. 

Perhaps there's a more elegant way, but I don't know it.

 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
 

-----Original Message-----
From: Uwe Degenhardt [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 11, 2005 8:25 AM
To: CF-Talk
Subject: cutting: aabbcc0000

Hi list I
have a value in a db-field like
"aabbcc0000"
and I always want
to cut the leading nulls
on the right to get: "aabbcc", but only the four nulls, how can I do this ?
There must be a regular expression
for this, but I can't remember.
Uwe





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220657
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to