c# - Password must have at least one non-alpha character - Stack Overflow
A simple method will be like this: Match match1 = Regex.Match(, @"(?=.{7})"); match1.Success ensures that there are at least 8 characters. Match match2 = Regex.Match(, [^a-zA-Z]); match2.Success ensures that there is at least ......