Converting text to Title case in Notepad++

The TextFX plugin has this feature, they call it "Proper Case". You can find it under TextFX -> TextFX Characters -> Proper Case:

alt text


You can use replace text by regular expression:

enter image description here

Explanation:

Search text

  • \< matches the beginning of a word
  • (\w+) matches any sucession of word letters

Substituted by

  • \L translates everything to lowercase until the end of the replacement string
  • \u translates the next letter to uppercase
  • \1 places the first captured () search group

    1:


As the way has changed in the meantime here is how it works now (without TextFX):

Select the case you want to convert, press Alt-U or choose

Edit - Convert Case to - Title Case.

Convert Case to - Title Case

Converting to Title Case

Tags:

Notepad++