I need help with Regex to find all words beginning with Denti and remove underscores.
Example:
Denti_Cal_Project_Status
Required Output:
DentiCalProjectStatus
I could use Notepad++.
I need help with Regex to find all words beginning with Denti and remove underscores.
Example:
Denti_Cal_Project_Status
Required Output:
DentiCalProjectStatus
I could use Notepad++.
Anchor the matches to Denti by use of the \G anchor.
(?:\G(?!^)|\bDenti)[^\W_]*\K_
See demo and explanation at regex101
\G(?!^) chains matches to a previous match\K resets beginning of the reported match[^\W_] is a short for [A-Za-z0-9]Replace with empty string.