login
Blurts on the Art of Software Development

Today | RSS | RDF | Atom | Other Tags
Categories : All | All | CI | .NET | General | Humour | Java | Personal | Reviews | Ruby | SW Eng

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.