Forum: Ruby Fwd: Ruby Quiz Submission

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
James G. (Guest)
on 2006-02-26 17:56
(Received via mailing list)
Begin forwarded message:

> open("http://www.google.com/search?q=weather+#{ARGV.shift}") do |page|
>   page.readlines.join =~ /<b>Weather<\/b> for <b>(.*?)<\/b>.*>(\d+)
> &deg;F/
>   puts "The temperature in #{$1} is #{$2} degrees F."
> end

Begin forwarded message:
This topic is locked and can not be replied to.