I’m trying to confirm that a password contains at least one Capital Letter and One Number. The following search pattern works when it finds a number, but isn’t catching the lack of capital letter.
Thanks for your Regex-pertise!
rg.SearchPattern = "^(?=.*[A-Z])(?=.*\d).+$"
8 posts - 5 participants