Community
    • Login

    merge specific lines

    Scheduled Pinned Locked Moved General Discussion
    7 Posts 3 Posters 737 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.
    • ? Offline
      A Former User
      last edited by

      how to merge specific lines containing specific characters to be move as 1 line. Please see the example below.
      Line 3 - 6 should be merge in Line 2. same with the others.

      db3d2a85-606c-4d5e-856c-c3050cf568da-image.png

      1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User
        last edited by

        @guy038 Please if u can help me

        Alan KilbornA 1 Reply Last reply Reply Quote 0
        • Alan KilbornA Offline
          Alan Kilborn @Guest
          last edited by

          @Ervin-Sanchez

          This is your second posting with the same information in a very short time.
          Please don’t do that, it wastes everyone’s bandwidth.

          Very people sit here and monitor these posts (what am I saying?? :-) ) so if you don’t get an instant response…then WAIT (or work on the problem yourself–there’s a thought!)

          ? Alan KilbornA 2 Replies Last reply Reply Quote 0
          • ? Offline
            A Former User @Alan Kilborn
            last edited by

            @Alan-Kilborn said in merge specific lines:

            I saying?? :-) ) so if you don’t get an instant respons

            Understood Thank you :)

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

              @Alan-Kilborn said in merge specific lines:

              Very people

              The “few” was in between these words in my brain…what happened to it? :-)

              1 Reply Last reply Reply Quote 1
              • Terry RT Offline
                Terry R
                last edited by

                @A-Former-User said in merge specific lines:

                merge specific lines

                So it would seem a line starting with a number is the start. Any line NOT starting with a number is a continuation of the previous line.

                So we have, using the Replace function
                Find What:\R(?=\d)
                Replace With: a single space in this field.

                So we remove the carriage return/line feed and replace with a single space. I haven’t actually tested this as not on my PC, but I feel confident it will work.

                Terry

                1 Reply Last reply Reply Quote 0
                • Terry RT Offline
                  Terry R
                  last edited by

                  @Terry-R said in merge specific lines:

                  Find What:\R(?=\d)

                  Sorry there was a typo.

                  It should be \R(?!\d)
                  So looking for a line following that does NOT have a number at the start.

                  Apologies

                  Terry

                  1 Reply Last reply Reply Quote 1

                  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