Thanks Adrian, Its working fine now.
Rob -----Original Message----- From: Adrian [mailto:[EMAIL PROTECTED] Sent: 04 May 2007 16:01 To: CF-Talk Subject: Re: ReReplace Not sure why you're using ReReplace, just use Replace. Characters like "." have special meanings in ReReplace. On 04/05/07, Robert Rawlins - Think Blue < [EMAIL PROTECTED]> wrote: > > I'm trying to replace the .jpg file extension on in a string with .gif and > using the following regex. > > > > <cfset LOCAL.New = 'D:\MediaStore\' & REReplace(ARGUMENTS.File, '.jpg', > '.gif', 'ALL') /> > > > > ARGUMENTS.File is a string that looks like 'myfile.jpg' > > > > Am I missing something here? > > > > Thanks, > > > > Rob > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277039 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4