Can anyone give me an example of a regular expression for must be loger than {n} and must include at least 2 digit integer
I have the following for now but it only validates the length;
<asp:RegularExpressionValidator ID="myTxtVal"
runat="server" ControlToValidate="myTxt"
ErrorMessage="Input Is Too Short" ValidationExpression=".{15}.*" />
Edit: fixed for 2 digit integer. Not the same as ‘has 2 digits’… 😉
It uses the lookahead to validate that there are at least two digits in a row, then the
.{15}part to match 15 characters. It doesn’t need to match the rest of the string, so I removed the.*.