Navigation

    Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    capitalize all words contained between two specific words

    Help wanted · · · – – – · · ·
    2
    3
    52
    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 Manenti
      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 Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        Alan Kilborn @Rockberto Manenti last edited by

        @rockberto-manenti

        A possible way:

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

        Rockberto Manenti 1 Reply Last reply Reply Quote 3
        • Rockberto Manenti
          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
          Copyright © 2014 NodeBB Forums | Contributors