Subject: Re: Regex to find urls in text?
From: Max Williams <toastkid.williams gmail.com>
Date: Sat, 12 Jul 2008 01:22:18 +0900
References: 307861
In-reply-to: 307861
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/.