Password Validation with Regular Expression
Hello everyone,
I have the following scenario and the requirements are to solve this through Regular Expression. I'll appreciate any help in this regard.
The scenario is that we have to restrict password input on a web page (ASP.NET) to these:
1. Password Length: 6 to 10 characters.
2. Password should not include 3 continued similar chars or digits e.g. 111 or AAA.
3. Password should not include 4 continued in sequence chars or digits e.g. 1234 OR ABCD.
4. It should not include any of special characters and punctuations.
Hope to see some answer soon.
Muhammad Ousama Ghazali
|