3 ms·josephlord's solution is much nicer: ^(?!(..+)(\1)+$)by jonahx 13y agojosephlord's solution is much nicer: ^(?!(..+)(\1)+$)abus 13y agoLook at the parent.