brokensandals.net -> Technical -> Detect & linkify URLs in Clojure

Date: 2011-11-20.

I wanted to replace URLs in some plain text data with links. Thankfully Daring Fireball’s regex saves me from doing any hard work. I did hit an unexpected snag (though in retrospect it should have been obvious) - an href without a protocol will be treated as a relative path, so if a detected URL has no protocol one must be added.