Test, validate and match regular expressions
This regex matches camelCase identifiers for conversion to snake_case. It captures the initial lowercase word (ensuring the identifier contains no underscores) and each subsequent capitalised word using the \G anchor to continue from the previous match. Useful for code refactoring tools, text editors, or scripts that transform naming conventions.