title: regex pattern for url validation to make http as required
body: <p>I'm stuck at regex pattern.<br>
  Currently I'm using regex:</p>
  
  <pre><code>https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,}   
  </code></pre>
  
  <p>but it takes <code>www.google.co.in</code> as a valid url but I want <code>http://</code> or <code>https://</code> as a required part of url.<br>
  Is there any way I can achieve that?</p>