<cfset blah = "asdflas.dfas.dfasdf.jpg">
<cfdump var="#rematch('[^\s]+(?=\.(jpg|gif|png))\.',blah)#">On Nov 7, 2007 1:58 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote: > You know... a better solution than what I've got, which is > to only deal with as many as two periods in a filename, is needed. > The current solution leaves some gaps if a user decides to user several > periods as delimiters. And stripping out the periods, except for the one > before the extension might cause name conflicts. > > Todd... what would be the regex for deleting just the last period > in a filename plux the extension? > > Rick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292879 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

