On 8/17/07, Haze Noc <h4z3 / the-c0re.org> wrote:
> mysite.each {|line|
>   if line =~ /<p><a href="(.+)"><b>(.+)<\/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]