I am re-writting our password validation rules to meet a very strict set of requirements for a asp.net c# web forms application.
I am using regex from most of this (such as min characters, allowed characters etc).
One requirement that I am having trouble with finding the solution for is the following: Must contain characters from 2 out of the 4 allowed character classes.
In this case the allowed classes are uppercase, lowercase, numeric and special (US ASCII).
If anyone can help on how to write this that would be apprecicated. Thanks