3 ms·
Excluding doubled consonants that have the same vowel on both sides of the pair: ^((?!([aeiou])([^aeiou])\3\2).)*$ The following also works for the testcase
by shdon 13y ago
Excluding doubled consonants that have the same vowel on both sides of the pair:
^((?!([aeiou])([^aeiou])\3\2).)*$
The following also works for the testcases and is shorter:
^((?!(.)(.)\3\2).)*$
- surreal 13y agoCan get 2 more points with: ef|^((?!(.)\2).)*$ But I reckon yours wins for having a pair of breasts in the middle