-1

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++.

bobble bubble
  • 16,888
  • 3
  • 27
  • 46
billboard
  • 785
  • 4
  • 13
  • 25

1 Answers1

0

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.

bobble bubble
  • 16,888
  • 3
  • 27
  • 46