Community
    • Login

    How to seperate time and text with an hyphen

    Scheduled Pinned Locked Moved General Discussion
    rejexfilesreplace
    3 Posts 2 Posters 1.5k 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.
    • Dov KrumanD
      Dov Kruman
      last edited by

      I am-trying to use rejex to insert hyphen between time value and text
      Ex: 12:34xxxx to 12:34 - xxxx.
      Using the Rejex option,. I entered \d{0,2}:\d{2} in the find line, and all positions are detected in many lines.
      In the replace line I an supposed to use the group ( \d{0,2}:\d{2}) and to add an hyphen . What is the way to do it?
      Thanks
      Dov

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Dov Kruman
        last edited by

        @Dov-Kruman said:

        \d{0,2}:\d{2}

        I guess you want

        $0 - 
        

        Cheers
        Claudia

        Dov KrumanD 1 Reply Last reply Reply Quote 2
        • Dov KrumanD
          Dov Kruman @Claudia Frank
          last edited by

          @Claudia-Frank said:

          @Dov-Kruman said:

          \d{0,2}:\d{2}

          I guess you want

          $0 - 
          

          Cheers
          Claudia

          @Claudia-Frank said:

          @Dov-Kruman said:

          \d{0,2}:\d{2}

          I guess you want

          $0 - 
          

          Cheers
          Claudia

          Thank you Claudia
          That is exactly what I was looking for
          Happy new year
          Dov

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