title: RegEx javascript not matching correctly
body: <p>I have a small javascript funtcion :</p>
  
  <pre><code>function GetFilteredListLimited(event) {
      var $source = $(event.target);
      var $Pattern = event.data.Pattern;
      var RE = new RegExp($Pattern, 'i');
      if (RE.test($source.val())) {
          console.log('RegEx match');
      }
  };
  </code></pre>
  
  <p>The pattern used is:</p>
  
  <pre><code>^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$
  </code></pre>
  
  <p>Which should match most email-addresses.</p>
  
  <p>Using <a href="http://regexpal.com/" rel="nofollow">http://regexpal.com/</a> I can see that the Pattern is correct. But for some weird reason the script already matches at the 4th character after @</p>
  
  <p>abc@abcd should not give a match, but is does. 
  Any suggestions ?</p>