All pastes #151394 Raw Edit

Someone

public ruby v1 · immutable
#151394 ·published 2006-08-28 00:24 UTC
rendered paste body
any ideas on why this returns all the html up until what i want?#!/usr/bin/rubyrequire 'open-uri'require 'cgi'url = CGI::escape(ARGV[0])open( "http://www.htmlref.com" ) { |html|    text = html.read        text.scan /^<a href="(reference\/app.\/.+)">#{ARGV[0]}<\/a>/m do |url|            puts url        end}