+3 votes
in General IT Tips by (34.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?

E.g.

aardvark

addax

antelope

beluga

bison

1 Answer

+2 votes
by (51.1k 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


...