These are the set of criteria that I need to fulfill:
At least 1 letter between lowercase [a - z] -> 25%
At least 1 letter between uppercase [A - Z] -> 25%
At least 1 number between [ 0 - 9 ] -> 25%
At least 1 character from [ $@#&! ] -> 25%
Minimum length of password is 6 and maximum length of password is 12
This is the pattern I used to try to fulfil these criteria.
I've not yet grasped how regular expressions work.
I've also not figured how to set a pattern to check for the fourth criteria [$@#&!].
<input type="password" name="password" placeholder="enter your password"
`pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[$@#&!]).{6,12}"required>
So I would need some assistance with this.