If you want the entire string minus the last 5 chars, use Left() <cfset newstr = left(oldstr, len(oldstr) - 5)>
======================================================================= Raymond Camden, ColdFusion Jedi Master for Hire Email : [EMAIL PROTECTED] Yahoo IM : cfjedimaster "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Mitko Gerensky-Greene [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 06, 2002 12:21 PM > To: CF-Talk > Subject: How to truncate the last 5 characters > > > How to truncate the rightmost 5 character of a string, using > CF while reading a text file (not SQL database). > > Thanks, > Mitko > ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

