Test, validate and match regular expressions
Matches any sequence of three identical consecutive characters using a capture group and backreferences. For example, it matches 'aaa', '111', or '___' anywhere in a string. Commonly used to detect stuck keyboard keys, find accidental character repeats in user input, or clean up text containing duplicated characters. With the global flag, it finds all such occurrences throughout the input.