what is the format for the RegularExpressionValidator control to check if the textbox to be validated has 6 or more characters?
^.{6,}$
will do it in most variants of regex. Let me verify it works in this specific case.
EDIT: I guess it worked.
<asp:RegularExpressionValidator ID="MyTextBoxValidator" runat="server"
ControlToValidate="MyTextBox"
ErrorMessage="Minimum length is 6"
ValidationExpression=".{6}.*" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With