So I'm using Regex to create a change password form. Some text updates to "weak", "average", "strong" and "perfect" based on the passwords strength. I've managed to create a regex string that checks for all characters active as you can see in this string here which I would then compare with the new password string...
Regex rgxAll = new Regex(@"^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*(_|[^\w])).+$");
Though what I'm trying to do now is create a string that checks: "Does the new password contain a lowercase character AND an uppercase character OR a special character OR a number" So to simplify it into coding terms...
NewPass.IsMatch(lowercaseLetter &&(uppercaseLetter || specialChar || number);
So yeah, I'm looking to create a regex that I can use IsMatch on to check. I've tried looking online but the syntax of regex is confusing to me.