Give this a go:
<cfset myStr = "$${POD[1]}">
<cfdump var="#myStr#"><br /> 
<cfset myStr = ReReplace(myStr,"\$\${(.*?)}","<!--\1-->","all")>
<cfdump var="#myStr#"><br />  

> -----Original Message-----
> From: Paul [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 01, 2005 12:17 PM
> To: CF-Talk
> Subject: OT: another regex
> 
> Regular expressions are so hard to find online because I have 
> no idea how to
> concisely google what I'm after.
> 
>  
> 
> My input data may contain strings like $${POD[1]} or 
> $${STRING}.  I would
> like to know how to replace the instances of "$${" with "<!-" 
> (an opening
> html comment in case that doesn't come through).  Then I'd 
> like to replace
> the corresponding "}" with "-->" - the closing html comment.  
> I thought I
> was on to something but I wound up replacing all } brackets 
> in the document,
> including those in my stylesheet definitions.
> 
>  
> 
> Thanks for the help!


[INFO] -- Access Manager:
This transmission may contain information that is privileged, confidential 
and/or exempt from disclosure under applicable law.  If you are not the 
intended recipient, you are hereby notified that any disclosure, copying, 
distribution, or use of the information contained herein (including any 
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in 
error, please immediately contact the sender and destroy the material in its 
entirety, whether in electronic or hard copy format.  Thank you.   A2



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222865
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to