From: 7stud -- Date: 2009-03-18T18:38:34+09:00 Subject: Re: regexp html scraping Arun Kumar wrote: > Hi, > I've to extract the full html from a website url using regular > expressions or 'net-http'. Can anybody help me with the code to extract > the full html content of a website. I need to use only regexp or > 'net:http' > require 'net/http' Net::HTTP.start("www.google.com") do |http| resp = http.get("/") puts resp.body[0..100] end --output:-- Google</ti -- Posted via http://www.ruby-forum.com/.