Test, validate and match regular expressions
This Python regex matches uppercase key-value pairs separated by an equals sign, making it ideal for parsing configuration files or environment variables. The value portion can span multiple lines until it encounters another line starting with an uppercase letter, preventing it from accidentally swallowing subsequent keys. It relies on the global and multiline flags to properly evaluate boundaries across a full document.