reverse the string, find the character, length of the string minus the pos of the character.
Adam On Wed, 12 Jan 2005 11:39:24 +0000, Andrew Dixon <[EMAIL PROTECTED]> wrote: > Hi Everyone. > > I need to find the last occurance of a character in a string. Is there > a way I can use a regular expression to search the string from the end > backwards for the character? Or is there another way I can do it using > a CF function. At the moment I have a conditional loop that uses the > Find() function to search until it returns 0 and then report the > previous value as the last occurance. This works fine, but I feel > there should be a better way. > > Thanks > > Andrew. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how to get a fax number that sends and receives faxes using your current email address http://www.houseoffusion.com/banners/view.cfm?bannerid=64 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190068 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54