what is email validation's regular expression in asp.net
Ask by Andrew Deniel
Updated 23 Sep 2020
The RegularExpressionValidator control is used to ensure that an input value matches a specified pattern.
It's used for email validate,numbervalidate, url validtate, special symbol validate, etc.
Syntax for Regular Expression Validator
<asp:TextBox ID="txtEmailID" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator ID="revEmailID" runat="server"
ControlToValidate="txtEmailID"
ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>