Match any word that is immediately repeated — for instance "the the" or "The THE". Use a backreference so you do not have to hardcode the word, and make the match case-insensitive so different casings still count as a repetition.
A advanced exercise. Your pattern is run against every test case — the strings it must match and the strings it must not — and each one reports what it got against what was expected, with 4 hints if you want them.
A guided tutorial, a live playground, graded exercises checked against test cases, a printable cheatsheet and a glossary. The tool needs JavaScript, because the regular expressions run in your browser.