Try
refindnocase('<img.*?src="(.*?)".*?>',cfhttp.fileContent,1,'true')

I think the 0 and the non-quoted true are confusing it.  Just a guess, 
though.  Also, have you verified the contents of cfhttp.filecontent?

--Ben

Burns, John D wrote:
> Ben,
> 
> I can see what you've got (I think) and it makes sense, but for some
> reason, it's not working.  I'm grabbing the html from www.google.com and
> running it on it and this is what I've got in my code:
> 
> #refindnocase('<img.*?src="(.*?)".*?>',cfhttp.fileContent,0,true)#
> 
> I'm using <cfdump to display that info and what I see are 2 arrays (len
> and pos) and both have values of 1 and 0.  I thought that if the first
> value was 1, the second value would be the position of the occurrence of
> the search string.  I know google has an image, and I'm displaying the
> cfhttp.filecontent in a textarea above so that I can ensure the results
> are coming back as expected.  Any ideas?  Am I doing something wrong?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199718
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to