I think you want Replace(), not ReReplace(). ReReplace is trying to use a RegEx to make the replacement, Replace will do the straight text match/replace.
>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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277044 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4