I'm trying to validate a password in my application by using Regex
. I don't have much idea of Regex, This is what i got.
"^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$"
This expression is also checking Special Character
, and 1 upper case character in password.
I need a Regex that full fills following criteria.
- Password Must be at least 8 characters Long.
- Password must contain 1 Letter
- Password must contain 1 Number
- Password should not contain any special Character.