I am attempting to write a .Net Regex for more than 2 consecutives letters.
aa - fine
Aa - fine
aaa - not allowed
Aaa - not allowed
I am new to regex, but this is what I have pieced together so far.
if (Regex.IsMatch(Password, @"/[^A-Za-z]{2}/"))
return "Password cannot contain 3 consecutive same letters";
I am not sure if this is close or not.