From: Gaspard Bucher Date: 2008-03-04T05:43:38+09:00 Subject: Re: [SOLUTION] [QUIZ] Hello, world? (#158) > require 'net/http' > require 'uri' > > # > # Google knows everything ;-) > # > > gke_url = URI.parse("http://www.google.com") > gke = Net::HTTP.start(gke_url.host, gke_url.port) { |http| > http.get("/search?q=ruby%20quiz%20158") > } > puts gke.body.match('\[QUIZ<\/b>\]\s(\w+, \w+).+as often as you can(\W)')[1..2].join("") > > Excellent !