I need some assistance with some RegEx.
My goal is to replace the word "mentor" that is not inside of a HTML tag with
the word "teacher".
Here is what I have so far...
<cfsavecontent variable="variables.pageContent">
<a href="mentorLink.cfm">this is the mentor mentoring link</a>
this is my mentor.
<input type="text" name="foobar" value="mentor">
</cfsavecontent>
<cfset variables.pageContent =
reReplace(variables.pageContent,"mentor(?=([[:space:]]|[[:punct:]]))","teacher","all")>
<cfoutput>#variables.pageContent#</cfoutput>
Desired Outout.....
<a href="mentorLink.cfm">this is the teacher mentoring link</a>
this is my teacher.
<input type="text" name="foobar" value="mentor">
Thanks,
--
John Blayter
(303) 325-1979
[EMAIL PROTECTED]
http://www.blayter.com/john/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive: http://www.houseoffusion.com/groups/RegEx/message.cfm/messageid:1106
Subscription: http://www.houseoffusion.com/groups/RegEx/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21