in reply to Reg expression to replace URLs with Anchor tags in Tweets
I think Regexp::Common::URI would be useful here.