I need to validate a password that matches the following criteria:
The follow regular expression is what I came up with:
^{8,}.(?=*\d)(?=.*[a-zA-Z])&
but this is failing on:
From what I can gather, trying to investigate RegEx, {8,} means minimum of 8 and don't care about the maximum, \d specifies digits, whitespaces and special characters. The a-z makes sense.
Try:
^(?=.*\d)(?=.*[a-zA-Z]).{8,}$
See it @work
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With