Thanks, Todd!

Rick

> -----Original Message-----
> From: Todd [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 07, 2007 3:32 PM
> To: CF-Talk
> Subject: Re: How do I get the characters after the last period in a string?
> 
> <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
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:292891
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to