title: Email fixed validation with regular expression in Javascript
body: <p>I am working on email validations using regular expressions, where I need some fixed email values to validate before proceeding</p>
  <p>Here is a clear requirement</p>
  <p><strong>User can only have up to 50 character before the Octets (@) and a maximum of 25 characters after the Octets, with a total of 80 characters</strong></p>
  <p>I used normal regex to validate email like</p>
  <pre><code>let reg = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
  </code></pre>
  <p>And now for the above requirement I am trying to create an expression like</p>
  <pre><code>let reg = /^\w+([\.-]?(\w{2,50})+)*@(\w{2,25})+([\.-]?\w+)*(\.\w{2,3})+$/;
  </code></pre>
  <p>But it's taking only starting character(<em>not accepting lower than two</em>) and not the last number of requirement, So any help would be appreciated.</p>