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
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277038
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