• Login
Community
  • Login

capitalize all words contained between two specific words

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 2 Posters 237 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    Rockberto Manenti
    last edited by Jan 20, 2022, 2:30 PM

    Hi to all
    I have numerous text files and each of them contains a line like:
    <title>movietitle</title>
    obviously each file has a different movie title.
    I would like all titles to become capitalized like
    <title>MOVIETITLE</title>.
    is there a way to do it all together?
    Thanks in advance

    A 1 Reply Last reply Jan 20, 2022, 2:43 PM Reply Quote 0
    • A
      Alan Kilborn @Rockberto Manenti
      last edited by Jan 20, 2022, 2:43 PM

      @rockberto-manenti

      A possible way:

      find: (?-is)(?<=<title>)(.+?)(?=</title>)
      repl: \U$0
      mode: regular expression

      R 1 Reply Last reply Jan 20, 2022, 2:52 PM Reply Quote 3
      • R
        Rockberto Manenti @Alan Kilborn
        last edited by Jan 20, 2022, 2:52 PM

        @alan-kilborn said in capitalize all words contained between two specific words:

        find: (?-is)(?<=<title>)(.+?)(?=</title>)
        repl: \U$0
        mode: regular expression

        it works!!! perfect!!!
        many many thanks!

        1 Reply Last reply Reply Quote 1
        1 out of 3
        • First post
          1/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors