• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

C#, password checking -- would like to use regular expressions library

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.
To count the values should be something like:

for (int k = 0; k < s.Length; k++)
{
digitCount += Char.IsDigit(s[k])?1:0;
upperCount += Char.IsUpper(s[k])?1:0;
lowerCount += Char.IsLower(s[k])?1:0;
}
 
Back
Top