title: ASP.NET email Regular Expression not working with hyphen just before the @
body: <p>I have the following ASP.NET markup:</p>
  
  <pre><code>&lt;asp:regularexpressionvalidator id="RegularExpressionValidator7"
              runat="server" 
              ControlToValidate="Email1" 
              ErrorMessage="Email not valid" 
              ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"&gt;
  </code></pre>
  
  <p></p>
  
  <p>As you can see, the validation expression is the one that Visual Web Developer gives as default.  It has always worked great for me, until someone tried to enter this e-mail address:</p>
  
  <p>johnsmith-@hotmail.com</p>
  
  <p>The validator says that the email is not valid, but it is.  I verified at hotmail.com and you can create an e-mail address with a hyphen just before the @ symbol.</p>
  
  <p>What must I change in the validation expression to accept this hyphen?</p>