title: PHP - Email Validation
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1025466/email-address-validation">email address validation</a>  </p>
  </blockquote>
  
  
  
  <p>Hello.
  I have this function to validate an email address</p>
  
  <pre><code>function isValidEmail($email){
   return eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email);
  }
  </code></pre>
  
  <p>It works well with domain zones like <strong>.com</strong>, <strong>.us</strong> etc, which contain from 2 to 3 symbols after a dot. My question is: is it important to include such zones as <strong>.info</strong> or <strong>.travel</strong> with length more than 3 symbols and should I worry about multiple  <strong>.co.uk</strong> etc.? How to improve the function for these needs?</p>