Test, validate and match regular expressions
Matches entire strings written in CamelCase or PascalCase, requiring an initial run of letters followed by one or more groups of an uppercase letter followed by lowercase letters (e.g., 'CamelCase', 'myVariableName', 'XMLParser'). Because it is anchored with ^ and $, no underscores, digits, spaces, or other characters are permitted. Commonly used to validate identifiers or enforce naming conventions, though it rejects strings ending in consecutive capitals like 'NewUserID'.