any ideas on why this returns all the html up until what i want? #!/usr/bin/ruby require 'open-uri' require 'cgi' url = CGI::escape(ARGV[0]) open( "http://www.htmlref.com" ) { |html| text = html.read text.scan /^#{ARGV[0]}<\/a>/m do |url| puts url end }