Why don't you just use replace then?

<cfset string=Replace(string, "&##38;&##35;&##60;", "<", "ALL">
<cfset string=Replace(string, "&##38;&##35;&##34;", """", "ALL">
<cfset string=Replace(string, "&##38;&##35;&##62;", ">", "ALL">

Remember whenever do something like that you have to escape the
characters.

## for # and "" for "

______________________
steve oliver
cresco technologies, inc.
http://www.crescotech.com


-----Original Message-----
From: Eddie Shipman [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 25, 2002 5:07 PM
To: CF-Talk
Subject: RE: ReReplaceNoCase problem


Even though I sent the message in plaintext...
the text that was sent in the message didn't come out correct...

This text,
&#60; font color=&#34;white&#34;&#62;

was supposed to be:
 &#38;&#35;60;font color=&#38;&#35;34;white&#38;&#35;34;&#38;&#35;62;

I want it changed to:
<font color="white">

--- Steve Oliver <[EMAIL PROTECTED]> wrote:
> Try this:
> 
> <cfset string="< font color=""white"">">
> 
> <cfset newstring=rereplacenocase(string,"< ([^>]*)>","<\1>","ALL")>

<SNIP>

> 
> How would I turn it into:
>  
> <font color="white">
>  
> using REReplaceNoCase...
>  
> This effort chokes:
>  
> temp = < font color="white">"
> REReplaceNoCase(temp, "&##60;(font[^62]&(&##62;)", "<\1>", "ALL");


__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 

______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to