Hm...I'm still trying to figure out the ins and outs of regular expressions.
So, I tried what you suggested. Here's my code:

<cfset content = "this is number [1] one. This is number [2] two.">

<cfset newContent=rereplace("\[(\d*)\]",Content,"<a
href=""here.cfm?v=\1"">view</a>","ALL")>

<cfoutput>
#newcontent#
</cfoutput>

And, here's what I get when browsed:

\[(\d*)\]

So, I looked up the syntax, and I think it should really be this:
<cfset content = "this is number [1] one. This is number [2] two.">

<cfset newContent=rereplacenocase(Content,"\[(\d*)\]","<a
href=""here.cfm?v=\1"">view</a>","ALL")>

<cfoutput>
#newcontent#
</cfoutput>

But that still doesn't replace anything, just returns the same string as was
in content. Thoughts?

-Deanna



Deanna Schneider
Interactive Media Developer
[EMAIL PROTECTED]


______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to