title: regex pattern for URL in javascript
body: <p>Im using the following URL regex pattern for URL validation.</p>
  
  <pre><code>/[-a-zA-Z0-9@:%_\+.~#?&amp;//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&amp;//=]*)?/gi;
  </code></pre>
  
  <p>But i need to exclude <code>.com</code>
   ie <code>http://google/</code> should work.</p>
  
  <p>What change needs to be done for this?</p>