I have an application in which I have to perform validations on password and confirm password. This is my criteria for password field:
- First letter should be capital.
- Password should be more than above 6 values.
- At least one special key should be present.
- At least 1 numeric value should be entered in password.
If all this criteria are present then only password is accepted.
This should work:
Testing it out: