On Mon, 26 Mar 2012 11:43:51 +0900, CJ M. wrote:


> page_string='junk'
> open("http://www.scatoday.net/") {|f|


why not this?

thufir@dur:~/ruby/html$ 
thufir@dur:~/ruby/html$ nl html.rb 
     1	require 'rubygems'
     2	require 'htmlentities'
     3	require 'net/http'
       
       
       
       
     4	uri = URI('http://www.scatoday.net/')
     5	page = Net::HTTP.get(uri)
       
     6	puts page.scan(/\/node\/[0-9]+.*title=".*">/)
       
thufir@dur:~/ruby/html$ 


however, I'm sure there's an existing gem for that.


HTH,

Thufir