Data Transformations Using Functional Programming Techniques Favorite

This website uses Adobe® Flash™ Player 9
Download Flash Now

If you are using Internet Explorer, you will need to restart your browser after installing Flash.
Adobe and Flash are registered trademarks of Adobe Systems incorporated. All rights reserved.

143 views • Uploaded December 3, 2007

Let me quote from the presentation -
"Oh, I got that wrong"
"Oh, I misspelled that"
"Oh, the syntax in Ruby is stupid. No wait, I got that wrong"

The meat of this presentation is parsing HTML with regular expressions in Ruby. What idiot does that?

require 'hpricot'
doc = Hpricot.parse("index.html")
(doc/:p/:a).each do |link|
p link.attributes
end

Comments Feed