From: William James Date: 2005-07-30T21:31:02+09:00 Subject: Re: confusion trying to get IMG tags from html page Brian Schr�der wrote: > require 'net/http' > > Net::HTTP.start('www.myphotowebsite.com') do |http| > response = http.get('/terry/temp/2005-06-18%20Kiss%20of%20Death%203/') > puts response.body.scan(/[^\t "']+\.(?:jpg|gif|png)/).flatten > end If you want only picture names that are in tags: puts response.body.scan(/<[^>]*?([^\t "']+\.(?:jpg|gif|png))[^>]*>/)