Community
    • Login

    How to seperate time and text with an hyphen

    Scheduled Pinned Locked Moved General Discussion
    rejexfilesreplace
    3 Posts 2 Posters 1.8k Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors