Test, validate and match regular expressions
This regex identifies duplicate property keys on consecutive lines in configurations like properties files or INI documents. It captures the initial key and equals sign, matches the remainder of the line, skips the newline, and asserts that the following line starts with the identical captured key. It is highly useful for data validation, detecting redundant configurations, and linting settings files.