Build, test, and debug regular expressions
This regex matches entire lines containing at least two consecutive identical characters. It works in multiline mode (^ and $ match line boundaries), using a capture group and backreference to detect the repeated character. Common use cases include text validation, data cleaning, and analyzing patterns in text where character duplication is significant.