From: 7stud -- Date: 2008-01-28T10:39:39+09:00 Subject: Re: Extracting Data from a Webpage 7stud -- wrote: > > title_re = Regexp.new(/(.*)<\/title>/) > While that regex works for www.google.com, in order for the regex to be more general, the regex should be: title_re = Regexp.new(/<title>(.*)<\/title>/m) and then to output the match: puts md_obj[1].strip() -- Posted via http://www.ruby-forum.com/.