Warning: This hasn’t been touched since 2007 and is abandonware!
Want to substitute text in a HTML document?
Take a look at hpricot_text_gsub.rb.
See the tests for usage examples. Yes, I’m lazy…
This little library was written while doing contract work for dela med noll – thanks to them for letting me share it!
Hpricot Text GSub is a part of Hpricot Goodies.