Quantcast
Viewing all articles
Browse latest Browse all 3762

Regex assistance to match two conditions

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

Read full topic


Viewing all articles
Browse latest Browse all 3762

Trending Articles