From: Ruby Baby Date: 2004-02-15T18:27:25+09:00 Subject: hyperlinking URLs (and emails?) in text Ugly: class String def hyperlink gsub(/(http:\/\/|https:\/\/|mailto:)([[:alnum:]\/!\#$\%&'()*+,.:;=?@~-]+)([[:alnum:]\/!\#$\%&'()*+:;=?@~-])/, '\\1\\2\\3') end end ... but it generally works, from my few tests. Anyone got a better version, or care to improve on this one? Just trying to hyperlink URLs in text (and in future, email addresses, without needing mailto:).