#!/usr/local/bin/ruby require 'uri' require "uri" url = URI.parse("http://www.ruby-lang.org/ja/") p url.host