I'm looking for a regex that will find an exact repeating pattern (case-sensitive). For instance, middle initials in a name string. Examples:
- Jim G G Bob is a match on " G " x 2
- Jim G. G. Bob is a match on " G. " x 2
- Tom H H H Ford is a match on " H " x 3 and so on ...
- Sarah H Howard is NOT a match because we have "h ", "H ", and " H" (which are all unique)
I only want to keep the 1st occurrence and remove all others. What will find and remove exact duplicates?