Actually this seems to work (for a couple of examples):

regex = /(http:\/\/|www.)([\w-]+\.)+[\w-]+/

Can anyone see any flaws, or know of a better version?
-- 
Posted via http://www.ruby-forum.com/.