From: Jamie Macey Date: 2006-10-07T01:50:48+09:00 Subject: Re: [QUIZ] Posix Pangrams (#97) On 10/6/06, Gavin Kistner wrote: > > This quiz extends the idea to the posix utilities[1] > [snip] > > [1] http://www.unix.org/version3/apis/cu.html has a complete list > > Assuming it's not a spoiler, following is the contents of the first > column of the table at that URL. (There's no joy in trying to > parse/string HTML.) Sure there is. require 'rubygems'; require 'hpricot'; require 'open-uri' doc = Hpricot(open('http://www.unix.org/version3/apis/cu.html')) puts (doc/"p.tent/i").map{|i|i.inner_html} Hpricot makes HTML scraping fun again (no, really!). Thanks Why! - Jamie