I wanted to create a password contains at least eight characters, including at least one number and
- ANIL FIRAT
- 30 Ara 2019
- 1 dakikada okunur
While I was coding a Java class to check a password contains at least eight characters, including at least one number and includes both lower and uppercase letters and special characters I searched online and found that validation expression.
(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$”
This is the website where I found the answer: https://stackoverflow.com/questions/19605150/regex-for-password-must-contain-at-least-eight-characters-at-least-one-number-a
Special thanks to Swapnil Tatkondawar ( https://stackoverflow.com/users/2442653/swapnil-tatkondawar ) for this amazing answer.
Comments