I want to validate a string using in bootstrapvalidator. String must contain
Minimum of 6 characters.
maximum 12 characters
Must contains atleast one numeral.
Must contain atleast one capital letter.
Must contain atleast one special characters
How can I do that? Can anyone show me the regular expression to do that?
I am already have this:
regexp:
{
regexp: "^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[$@$!%*?&])[A-Za-z\d$@$!%*?&]{6,12}",
message: 'The password should contain Minimum 6 and Maximum 12 characters at least 1 Uppercase Alphabet, 1 Lowercase Alphabet, 1 Number and 1 Special Character:'
}
But if i enter correct password requirements also it is showing redcolor and it is not changing to green color