I want a regular expression to check that:
A password contains exactly one uppercase character, includes at least one special character (#, @, -
) and password length must be at least 8 symbols!
(?=.[A-Z]{1}?)(?=.*[#@-])[A-Za-z#@-]{8,}
How can I write it for a password contains exactly one uppercase character?