Notepad++ and regex: how to UPPERCASE only first letter in specific words with / find / replace

  Kiến thức lập trình

This is the given situation:

INPUT TEXT
    jjj=Johann{enter}{enter}
    uuu=08:30{tab}18:00{tab}
    vvv=08:30{up}18:45{down}08:30{left}18:45{right}08:30{tab}

OUTPUT TEXT (goal)
    jjj=Johann{Enter}{Enter}
    uuu=08:30{Tab}18:00{Tab}
    vvv=08:30{Up}18:45{Down}08:30{Left}18:45{Right}08:30{Tab}

how do I do this in Notepad++?

Find:

 {[a-z]*}

Identifies perfectly the words in curly brackets but I struggle with converting just the first character to upper case

Substitution:

 U$0

converts everything to uppercase but I just want the first char to be upper case (see OUTPUT TEXT)

Could anyone please help me with that?

New contributor

Johann Sterzik is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT