From: Thomas Wieczorek Date: 2008-08-21T19:56:51+09:00 Subject: Re: REGEXP HELP On Thu, Aug 21, 2008 at 12:50 PM, Lex Williams wrote: > > Instead of using a regular expression you could consider a html parser , > and/or do a xpath search to retrieve images. Check hpricot . > Yeah, it is quite easy with Hpricot: require 'open-uri' require 'hpricot' site = Hpricot(open("http://code.google.com/edu/submissions/SedgewickWayne/index.html")) site.search("//img") #=> returns an array of all images