Maestro Bm
Maestro Bm

Reputation: 43

Uppercase after every character in NP++

I want to turn every letter after : to uppercase on every single line.

For example from:

nerd:class:ace
make:milk
lake:cake

to

nerd:Class:Ace
make:Milk
lake:Cake

Upvotes: 0

Views: 47

Answers (1)

ggorlen
ggorlen

Reputation: 57155

  1. Open Replace menu with Ctrl+h.
  2. Ensure the Regular expression checkbox is ticked.
  3. Enter :([a-z]) in the Find what : field (Alt+f). This matches and captures any letter following a :.
  4. Enter :\U$1 in the Replace with : field (Alt+l). \U uppercases the captured letter in the matched group $1.
  5. Press Alt+a to Replace All.

Upvotes: 3

Related Questions