This content has been marked as final.
Show 2 replies
-
1. Re: REReplace / Regex Help
Aaron Neff Jul 2, 2012 11:56 PM (in response to wmkolcz)wmkolcz wrote:
I have to replace single quote marks in a html file with doubles without changing aprosphies.
[...]or my personal favorite <div class='media_wrapper' style='width:300px;'>
Hi wmkolcz,
Regex isn't necessary. Here is an example:
<cfsavecontent variable="html">
<div class='media_wrapper' style='width:300px;'>foobar's</div>
</cfsavecontent>
<cfset xml = xmlParse(html) />
<cfdump var="#right(xml, len(xml)-39)#" />
Thanks,
-Aaron
-


