title: jQuery Email Regex
body: <p>I have been developing a script and I'm stumped right now. I have tried many different Regex from Google and non have worked, this is my code:</p>
  
  <pre><code>$(document).ready(function() {
      var email_check = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$/;
      num = 0;
      $('#email').focus(function() {
          $('#email_check').show();
          $(this).keyup(function() {
              error = 0;
              var email = $('#email').val();
              num = num+1;
              if(!email_check.test(email)) {
                  error = 1;
              }
              if(error == 0) {
                  $('#email_check').html('O'+num+email+error);
              }else if(error == 1) {
                  $('#email_check').html('X'+num+email+error);
              }
          });
      });
  });
  </code></pre>
  
  <p>Any help is great, thanks!</p>