- <img src="http://www.mydomain.com/images/test123.jpg" border="0">
- http://www.mydomain.com/images/test123.jpg
- <img border="0" src="http://www.mydomain.com/images/test123.jpg">
- http://www.mydomain.com/images/test123.jpg
- <img width="100" height="100" src="http://www.mydomain.com/images/test123.jpg">
- http://www.mydomain.com/images/test123.jpg
- <img width="100" height="100" src="http://www.mydomain.com/images/test123.jpg" border="1">
- http://www.mydomain.com/images/test123.jpg
- <img alt="" border="0" src="http://www.mydomain.com/images/test123.jpg">
- http://www.mydomain.com/images/test123.jpg
<cfscript>
function doit(html) {
return REReplace(html, "^.*<img[^>]+src=(['""])([^'""]+)\1[^>]*>.*$", "\2");
}
</cfscript>
<cfoutput>
<cfsavecontent variable="html">
<img src="http://www.mydomain.com/images/test123.jpg" border="0">
<img border="0" src="http://www.mydomain.com/images/test123.jpg">
<img width="100" height="100" src="http://www.mydomain.com/images/test123.jpg">
<img width="100" height="100" src="http://www.mydomain.com/images/test123.jpg" border="1">
<img alt="" border="0" src="http://www.mydomain.com/images/test123.jpg">
</cfsavecontent>
<dl>
<cfloop list="#trim(html)#" index="line" delimiters="#chr(10)#">
<dt>#htmlEditFormat(line)#</dt>
<dd>#htmlEditFormat(doIt(line))#</dd>
</cfloop>
</dl>
<hr />
<pre>#htmlEditFormat(fileRead(getCurrentTemplatePath()))#</pre>
</cfoutput>