No you understood perferctly thanks very much. The second bit of your iteration actually saved the day as I was messing about with CFSavecontent. I've actually tweaked the code a bit because I am actually only after the file name. See below;
<cfset content = rereplace(dataContent, "<img([^src]*)(src=['|""])([/*[[:alnum:]]*/]*)([^""]*)[^>]*>", "<contentItemHref=""\4""><Comment>hardcoded</Comment> <MediaTypeFormalName=""hardcoded""/> <Format FormalName=""hard coded""/><contentitem>", "all")> That's me done for now many thanks. Jide >Unless I misunderstand... > >rereplace(dataContent, "<img.*?src=['|""|](.*?)['|""| |].*?>", "<contentItem >Href=""\1""><Comment>hardcoded</Comment> <MediaType >FormalName=""hardcoded""/> <Format FormalName=""hard coded"" >/><contentitem>", "all") > >.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. >Bobby Hartsfield >http://acoderslife.com > > >-----Original Message----- >From: Jide Aliu [mailto:[EMAIL PROTECTED] >Sent: Thursday, June 14, 2007 10:44 AM >To: CF-Talk >Subject: Re: reReplaceNoCase() problem from a newbie, please help > >Thanks Bobby for taking time out for the solution, that did the trick. It's >the start of my problem on the solution though how would you go about >reReplacing the same item with the tags below in a body of text/string. Is >it at all possible or should I be looking at something different from Regex? > ><ContentItem Href="BlissStarWars_15.jpg" Duid="BlissStarWars_15.jpg"> ><Comment>hardcoded</Comment> <MediaType FormalName="hardcoded"/> <Format >FormalName="hard coded"/> > >So instead of isolating the the image name like I did below <cfset content = >REReplaceNoCase(dataContent, >"<img([^src]*)(src=['|""])([/*[[:alnum:]]*/]*)([^""]*)[^>]*>", "\4", "ALL")> >I want to take the image name and insert it into the <contentItem >Href="BlissStarWars_15.jpg"> with all the accompanying tags > ></ContentItem> >> Try this one out. >> >> rereplace(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:281157 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

