- Matching Repeated Words:

  - Text: "The quick brown fox fox jumps over the lazy dog dog"
  - Regex: `(\b\w+\b)\s+\1`
  - Result: Matches `fox` and `dog`.

- Matching Repeated Characters:

  - Text: "Hellooo world"
  - Regex: `(\w)\1+`
  - Result: Matches `oo`.

- Matching Repeated Numbers:

  - Text: "123-123-4567"
  - Regex: `(\d{3})-(\1)-(\d{4})`
  - Result: Matches `123-123-4567`.

- Matching Repeated Letters:

  - Text: "He laughed hahahaha"
  - Regex: `(ha)+`
  - Result: Matches `hahaha`.

- Matching Repeated Patterns in HTML Tags:

  - Text: "<div><p>Hello</p></div>"
  - Regex: `<(\w+)>(.*?)<\/\1>`
  - Result: Matches `<div><p>Hello</p></div>`. Captures `div` and `p` tags.

- Matching Repeated Whitespace:

  - Text: "The quick brown fox"
  - Regex: `(\s)\1+`
  - Result: Matches , , and .

- Matching Repeated Hexadecimal Digits:

  - Text: "1A1A2B2B3C3C"
  - Regex: `([0-9A-Fa-f])\1`
  - Result: Matches `1A`, `2B`, and `3C`.

- Matching Repeated Letters Only at the Start of a Word:

  - Text: "apple pear orange"
  - Regex: `(\b\w)\1\w*`
  - Result: Matches `apple` and `orange`.

- Matching Repeated Words with Different Case:

  - Text: "The the quick brown fox"
  - Regex: `(\b\w+\b).*?\1`
  - Result: Matches `The the`.

- Matching Repeated Consonants:

  - Text: "programming is fun"
  - Regex: `([bcdfghjklmnpqrstvwxyz])\1+`
  - Result: Matches `mming` and `n`.