title: Regular expression for check website url
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1410311/regular-expression-for-url-validation-in-javascript">Regular expression for URL validation (in JavaScript)</a><br>
    <a href="https://stackoverflow.com/questions/8660209/how-to-validate-url">How to validate url?</a>  </p>
  </blockquote>
  
  
  
  <p>I have a textbox in a form where user can enter any website url. i want to check that url, whether it is valid or not through regular expression. it will accept only like this "<a href="http://www.google.com" rel="nofollow noreferrer">http://www.google.com</a>" or "www.google.co.in".</p>
  
  <p>I have using a expression like</p>
  
  <p><code>/((http|https|ftp):\/\/(www|WWW)|(www|WWW))\.[A-Za-z]{3}/</code> .</p>
  
  <p>it is working but when i enter wwww.google.co.in, it says valid.</p>
  
  <p>can any one help me please.</p>