by bencoder · 12y ago · 0 comments
^((?!([aeiou])([^aeiou])\3\2).)*$
The following also works for the testcases and is shorter: ^((?!(.)(.)\3\2).)*$ ef|^((?!(.)\2).)*$
But I reckon yours wins for having a pair of breasts in the middle ^(.)(.).*\2\1$haha