title: Regex for Email Address validation
body: <p>I am trying to validate email addresses. Currently I'm using the following  regex to validate email addresses which works perfectly fine. But I now want to tweek it and allow only <code>min</code> 2 and <code>max</code> 40 characters for the domain-part of the email address i.e after the <code>@</code> symbol. I tried setting the range but I guess it wont work like this. Where am I going wrong?</p>
  
  <p>The Regex:</p>
  
  <pre><code>^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,})$
  </code></pre>