Todd, not sure that that would work. If you look at my code, I am cfhttp-ing a page and searching for the first image tag. I simply gave an example of the format of the <img src> in the returned HTML. RegEx would be best for that, right?
-----Original Message----- From: Todd [mailto:[EMAIL PROTECTED] Sent: Thursday, December 20, 2007 2:58 PM To: CF-Talk Subject: Re: Another RegEx question... listLast(URL,'/') ? You're just complicating something simple with Regex here in this case. On Dec 20, 2007 2:55 PM, Che Vilnonis <[EMAIL PROTECTED]> wrote: > In a sea of data, I need to pull the first image tag. It looks like > this... > <img > src=" > http://images.craigslist.org/01010001150701030720071219cd6f3ea36b5b712 > d > 2f00d0d9.jpg"> > > I am using... > <cfset imageLink = REReplaceNoCase(cfhttp.fileContent, > "<img[^>]+([a-z0-9_]\.(?:jpg|jpeg|gif|png))[^>]*>", "", "ONE")> > > But it does not work. Can anyone help? Thanks, Che > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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/CF-Talk/message.cfm/messageid:295207 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

