+3 votes
in General IT Tips by (48.9k points)

I have a text file containing a word in each line. Some of those words start with a lowercase letter. How can I convert those first characters to uppercase?







1 Answer

+2 votes
by (63.5k points)
selected by
Best answer

You can easily convert the first letter of each word to uppercase by following these steps:

  • Open your file in Text Editor.
  • Press "CTRL + H" to open the "Find and Replace" window.
  • In the "Find" textbox, type ^(.)
  • In the "Replace with" textbox, type \u\1
  • Check the "Regular expression" box
  • Click on the "Replace All" button
Change first letter to uppercase

All lowercase first letters will be converted to uppercase. 

Related questions

+3 votes
1 answer
+2 votes
1 answer
asked Sep 8, 2018 in General IT Tips by praveen (63.4k points)