title: How to Validate Email Address using RegularExpression validator?
body: <p>I have used the below code to validate the email address:</p>
  
  <pre><code>&lt;asp:RegularExpressionValidator ID="EmailAddressFormatValidator" runat="server" 
       ControlToValidate="EmailAddressTextBox" 
       ErrorMessage="RegularExpressionValidator" 
       Display="Dynamic" 
       ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
       EnableClientScript="False"&gt;Email Address is not valid.&lt;br /&gt;       
  &lt;/asp:RegularExpressionValidator&gt;
  </code></pre>
  
  <p>It is working fine, but when users enters " " (space) in the end of the email, it stops working and declare the valid email to invalid, please help me how i can resolve this.</p>