From: Tim Pease Date: 2007-08-17T22:59:01+09:00 Subject: Re: Return first line of parsing On 8/17/07, Haze Noc wrote: > mysite.each {|line| > if line =~ /

(.+)<\/b>/ > puts "#{$2} found at: #{$1}" > end > } > > Ok guys, Lets say the website has 50+ lines.. and i only want to return > the first one, any ideas? %r/^(.*)$/.match(mysite)[1]