I have a issue that my application in currenlty doing number validation with an issue.

[-d0-9] and checking that the lenth is 10 characters, all that is working as it should. The issue I'm having is: '0000000000', '1111111111',....,'9999999999' that passes my checking but is there a Regular Expression to check for these?

kind regards

Hi singlem

For checking numbers the following will work



Check the length of string and backtrack for succession....How many numbers u want to skip like 9999999999, 000000000 etc .... If that is limited then use normal condition statements



OK so basicly there is no Regular Expression to do this?

I need a query that will check these numbers

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.