I have a body of text, in the body of text I want to replace all image tags with the value of the src attribute, so for example below
"This is the body it can be as long as 8,000 character but within the body here is the image tag <img alt="" height="150" src="/uploads/allfiles/Image/BlissStarWars_15.jpg" width="200"/> and here I go blah blah another image tag with a different value in the src attribute <img alt="" height="150" src="/uploads/allfiles/Image/245.jpg" width="200"/>" All I want to do is to replace the <img> tags with the src value which is BlissStarWars_15.jpg for the first image tag encountered and 245.jpg for the second image tag. I have tried using the code below without any joy at all. <cfset content = reReplaceNoCase(dataContent,'<img.*?src=['|"](.*?)['|"].*?>','\1','ALL')> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| CF 8 â Scorpio beta now available, easily build great internet experiences â Try it now on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281107 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4