Build, test, and debug regular expressions
This zero-width pattern matches positions where CamelCase words begin, splitting strings like 'myVariableName' into 'my Variable Name'. The first alternative breaks between a lowercase and an uppercase letter, while the second handles acronym boundaries (uppercase followed by uppercase+lowercase), so 'parseXMLDoc' splits into 'parse XML Doc'. Used with global and multiline flags, it's ideal for tokenizing identifiers, inserting spaces into variable names, or converting camelCase/PascalCase into readable text.