Regex for valid URL (Javascript) (with a twist)
<p>a simple regext that can test 
Either but atleast one of (http, https, or www).</p>

<p>I've seen examples that has compulsion of protocol, or allows directly like google.com.</p>

<p>but for users, they are used to typing www., not all would type the protocol.
But still it should be a valid one, and not a "abced.com"</p>