I'm looking for a regex that disallow all the same number, and without limitation on the length of the digits in the number.
I'm actually looking for the opposite of this regex: ^(\d)\1*$
For example:
True:
- 111118
- 1234
- 88995632
False:
- 333
- 00000
- 5555
I'm using ASP Regular Expression:
<asp:RegularExpressionValidator ID="Regex" runat="server" ValidationExpression="^(\d)\1*$" ErrorMessage="" CssClass="errfont" ControlToValidate="txtKilometer" Display="Dynamic"></asp:RegularExpressionValidator>
Thanks for the help!