From: "Brian Schröder" Date: 2005-07-30T19:16:08+09:00 Subject: Re: confusion trying to get IMG tags from html page > > [snip] > > Or use the simplest variant: > > require 'open-uri' > > open('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 > obviously that should have read 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 > regards, > > Brian > > -- > http://ruby.brian-schroeder.de/ > > Stringed instrument chords: http://chordlist.brian-schroeder.de/ > -- http://ruby.brian-schroeder.de/ Stringed instrument chords: http://chordlist.brian-schroeder.de/