what is email validation's regular expression in asp.net Andrew Deniel254108-Jun-2013asp.netasp.net Updated on 23-Sep-2020
Durgesh Tripathi
20-Jul-2013The 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>
Andrew Deniel
08-Jun-2013