title: Regex for validating email length before '@'
body: <p>An open-source cms I'm working on uses the following regex for validating emails:</p>
  
  <pre><code> valid_regex=^[_a-z0-9-]+(.[_a-z0-9-]+)@[a-z0-9-]+(.[a-z0-9-]+)(.[a-z]{2,3})$
  </code></pre>
  
  <p>and I need to validate also the length of the email address before the '@' symbol to accept emails with at least 2 characters.. I've read that using {2,} will do the trick but where and how exactly should I use it?......</p>