title: Regular expression for Email validation which detect ".com.com"
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/46155/validate-email-address-in-javascript">Validate email address in Javascript?</a>  </p>
  </blockquote>
  
  
  
  <p>I'm having some trouble with validating email address client side using Javascript. After a lot of searching I found a regular expression which is as follows:-</p>
  
  <pre><code>/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$ 
  </code></pre>
  
  <p>It was working fine with most email ids I have tested with. But suddenly I discovered that it's also saying email's with <code>.com.com</code> like extensions, which is a serious bug for me.</p>
  
  <p>How my question is that how I can modify the mentioned regular expression which will invalid <code>.com.com</code> also.</p>
  
  <p>I should also mention that i have also tried with many other regular expressions but they all seem to have this same mentioned problem...</p>
  
  <p>Thanks...  </p>