Test, validate and match regular expressions
This regex matches positions where camelCase or PascalCase strings should be split. The first alternative matches uppercase letters following lowercase letters or digits (like the 'C' in 'camelCase'). The second handles consecutive capitals followed by lowercase (like the 'C' in 'HTMLCode'). Commonly used for decamelizing identifiers into space or underscore-separated words.