Hehe, I used the replace function and it worked.

 

I’m writing an application that converts our CF catalog to an HTML catalog, so we can distribute them via CD.

 

I can’t wait for part 3 of CFEverywhere article by Phil, darn it.  Was going to be the ticket of getting BD in house.  Oh well, maybe some other time.

 

Ron Mast

Webmaster

Truth Hardware

Ph: 507-444-4748

Fx: 507-444-5361

www.truth.com


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Mayfield
Sent: Thursday, May 26, 2005 3:18 PM
To: [email protected]
Subject: Re: ReReplaceNoCase function

 

I don't see where you need reReplace(), change it to replaceNoCase() or escape the special characters in substring1.  I'm not up to speed on CF's implementation of regexp's but at a minimum you need . and ? escaped - "\.html\?nextPage=1".



At 5/26/2005 02:41 PM, you wrote:

Hi All,
<cfset var1 = '<a href="" style="text-decoration: none">hello</a>'>
<cfset var1 = ReReplaceNoCase(var1, ".html?nextPage=1", "index2.html", "one")>
<cfoutput>#var1#</cfoutput>
 
With the code above var1 remains the same. 
 
What am I doing wrong?
 
 
Ron Mast
Webmaster
Truth Hardware
Ph: 507-444-4748
Fx: 507-444-5361
www.truth.com
 

_______________________________

This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual to whom they are addressed.  If you are not the intended recipient or the individual responsible for delivering the e-mail to the intended recipient, please be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

_______________________________

This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual to whom they are addressed.  If you are not the intended recipient or the individual responsible for delivering the e-mail to the intended recipient, please be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited.

Reply via email to