\ is a special character, so you have to escape it

<cfset test = #REReplace(dir,"\\\\","\\","ALL")#>

But in this case you're better off just using replace:

<cfset test = #Replace(dir,"\\","\","ALL")#>


At 12:29 PM 12/16/2002, you wrote:
>For some reason I can't to a replace on the following:
>
>dir = D:\\
>
><cfset test = #RERplace(dir,"\\","\","ALL")#>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to