Test, validate and match regular expressions
This regex matches the boundary between a word ending in a lowercase letter (including various accented characters or the percent sign) and a following uppercase letter. It uses two capturing groups to separate the lowercase segment from the uppercase segment, making it perfect for identifying missing spaces in merged words or for splitting camelCase and PascalCase strings. With the global and multiline flags, it processes all occurrences across multiple lines of text.