Untested, but maybe: /(\w)\1{2}/ work? The backreference should refer to whatever matches in the parens.