title: regular expression in email validation javascript
body: <p>I am doing email regular expression validation for the email and I am stuck on one point using 
  following expression if user enter something like <code>abc.abc</code> then this expression works fine but when user enters <code>advxyz@pqr.com</code> then it doesn't work </p>
  
  <pre><code>var myreg = new RegExp(/([a-z0-9.]+)@([a-z0-9]+)\.([a-z0-9]+)/i);
  var patter =  myreg.test(document.getElementById("email").value)
  alert(patter)
  if(patter == false){
    errorMsg.push("email Formate Error Ex:firstname.lastname@abc.com");
  }
  </code></pre>
  
  <p>I want that user must enter his email in this formate like <code>firstname.lastname@abc.com/.ca/.org</code>        </p>