Thanks, Bobby... Rick
> -----Original Message----- > From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 07, 2007 2:53 PM > To: CF-Talk > Subject: RE: How do I get the characters after the last period in a string? > > Listlast(filename, '.') > to get the extenstion > > And... > > ListDeleteAt(filename, listlen(filename, '.'), '.') > to get everything except the extension (including the dot) > > It doesn't matter with either method whether there is 1 dot or 40. They will > work as long as there is at least 1 dot present. > However, the first will return the entire string if there is no dot and the > second will return an empty string if there is no dot. > > ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. > Bobby Hartsfield > http://acoderslife.com > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292909 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4