title: How to validate my URL efficienty using JavaScript?
body: <p>My regex successfully validates many URLs except <code>http://www.google</code></p>
  
  <p>Here's my URL validator in JSFiddle:  <a href="http://jsfiddle.net/z23nZ/2/" rel="nofollow">http://jsfiddle.net/z23nZ/2/</a></p>
  
  <p>It correctly validates the following URLs:</p>
  
  <p><code>http://www.google.com</code>   gives   <strong>True</strong></p>
  
  <p><code>www.google.com</code>        gives   <strong>True</strong></p>
  
  <p><code>http://www.rootsweb.ancestry.com/~mopoc/links.htm</code>   gives <strong>True</strong></p>
  
  <p><code>http:// www.</code>  gives <strong>False</strong></p>
  
  <p>...but not this one: </p>
  
  <p><code>http://www.google</code>  gives <strong>True</strong> </p>
  
  <p>It's not correct to return true in this case.  How can I validate that case?</p>