Change Upper to Lower Case only at the beginning of each line



  • Hello,

    I want to put words that begin with a capital letter in lower case, and this only applies to the beginning of each sentence, the rest of the sentence must remain intact (Respect the capital letter):

    Example text:

    A video game developed by Rockstar bla bla bla. (Rockstar must remain intact)

    After its release, the game is published on Android bla bla bla. (Android must remain intact)

    The script is set in New York City, bla bla bla bla. (New York City must remain intact)

    Make it like this (The change is made only at the beginning of each sentence) :

    a video game developed by Rockstar bla bla bla. (Rockstar must remain intact)

    after its release, the game is published on Android bla bla bla. (Android must remain intact)

    the script takes place in New York City, bla bla bla bla. (New York City must remain intact)

    Is it possible with Notepad++ ?

    Thanks for your help.



  • @Antoine-Gautier

    Yes, if your examples are all lines starting at the left “margin” in Notepad++. Otherwise probably not. Please let us know which you have.



  • Yes, all lines in text starting at the left “margin” in npp



  • @Antoine-Gautier

    Then I might be tempted to try to search for (?-s)^(.)(.*) and replace with \L\1\E\2 with Regular Expression Search Mode selected.



  • It works very well.

    Thank you so much for your help :)



  • I suppose the much simpler search for (?-s)^. and replace with \L$0 also works fine…


Log in to reply