I want to make that input take at least one lowercase, one uppercase, and only 2 numaric 0-9 and at least 8 characters (not more than 2 numaric) I try this pattern
(?=(?:.*\d){2})(?=.*[A-Z])(?=.*[a-z]).{8,}
Means, 4 characters (2 number + 1 lowercase + 1 uppercase letter) are must need and other characters can be anything .
I also tries this pattern
(?=(?:.*\d){2})(?=.*[A-Z])(?=.*[a-z])[^0-9]{8,}
and this
(?=(?:.*\d){2})(?=.*[A-z])(?=.*[a-z])[A-z!"#$%&'()*+,-.\/:;<=>?@[\]^_{|}~]{8,}
.But anything could not work as my needed .
I want Like...
Abc4k9h2L ->FALSE
Abc4k9hL+ ->TRUE
Abc4l@s$kl4 ->TRUE
How to do that?