The Gaia Ajax Regular Expression Validator validates whether the value of an associated input control matches the pattern specified by a regular expression. It inherits from the ASP.NET RegularExpressionValidator, and has built-in Ajax behaviour.
1:
2: Enter your email address:<br />
3: <gaia:TextBox ID="zEmail" runat="server" />
4: <gaia:RegularExpressionValidator ID="zRegularExpressionValidator1"
5: runat="server" ErrorMessage="Please provide a correct e-mail address"
6: ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
7: ControlToValidate="zEmail" Display="Dynamic"></gaia:RegularExpressionValidator>
8: <gaia:RequiredFieldValidator ID="zRequiredFieldValidator1" runat="server"
9: ControlToValidate="zEmail" Display="Dynamic">Please enter something in the textbox</gaia:RequiredFieldValidator><br />
10: <gaia:Button ID="zSubmit" runat="server" OnClick="btnSubmit_Click"
11: Text="Submit Form" />
12: <gaia:Label ID="zResult" runat="server" />
13: