I want to match strings that do not contain more than 3 of the same character repeated in a row. So:
I'm answering this question :
Is there a regular expression for matching a string that has no more than 2 repeating characters?
which was marked as an exact duplicate of this question.
Its much quicker to negate the match instead
if (!Regex.Match("hello world", @"(.)\1{2}").Success) Console.WriteLine("No dups");