Someone asked on the #ruby-lang IRC channel earlier today whether there's a utility somewhere for extracting URLs from a string. Since I only have a gazillion things I should've been doing, I decided to hack together some Ruby...
So, here's UrlRegex and a test for it.
If and when you find a flaw in the code, post a comment and I'll see if I can get myself to fix it ;)
UPDATE: I wasn't aware rafb.net's "paste" application loses old pastes that quickly. I've now uploaded the source code on this server.
TrackBacks[0]
Comments[4]
Posted by lasse on August 28, 2005 7:42:44 PM EEST







