I am trying to create a password regex that:
- is at least 8 characters in length
- must start with a capital letter, followed by a number
- have one of these special characters (#@*)
- contains exactly 3 numbers at the end of the password
This is what I have tried so far:
/^([A-Z][\d])([#@*]{1})([A-Za-z0-9]+)([\d]{3})$/
The problem with this so far is that it is only allowing a special character to come after the number.
For example: It allows A4#Fgf344 but not A4Fg#f344.