Community
    • Login

    capitalize all words contained between two specific words

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 221 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.
    • Rockberto ManentiR
      Rockberto Manenti
      last edited by

      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

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Rockberto Manenti
        last edited by

        @rockberto-manenti

        A possible way:

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

        Rockberto ManentiR 1 Reply Last reply Reply Quote 3
        • Rockberto ManentiR
          Rockberto Manenti @Alan Kilborn
          last edited by

          @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
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors