I cannot get a regexp that checks if password has at least one digit to work. This has been answered everywhere but all the answers stop working if split up. For example in this Working Password Validation if I remove:
(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&+=])
from
^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&+=])(?=\S+$).{8,}$
in order to check for the presence of a single digit, the whole thing stops working
I'm new with regular expressions, this seems to make sense but it doesn't, show me the light if you can.