2007-06-30 uriとopen-uri Ruby require "uri" require "open-uri" open(ARGV[0]) { |f| puts URI.extract(f.read, %w[http]) }