Community
    • Login

    Mark spesific lines before a suffix

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 2 Posters 611 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.
    • ? Offline
      A Former User
      last edited by

      This post is deleted!
      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones @Guest
        last edited by

        @adil-lagdah ,

        In your example text, my first guess as to what you mean would mark all the lines in the file except the very first (or all the lines except the very first and the <------------> separator itself), because nearly ever line is between those, in some way.

        testxx:textxx       | 01
        <------------>      | 02
        Test #1: 0          | 03
        Test #2: 3          | 04
        Test #3: 0          | 05
        <------------>      | 06
        test1:test1         | 07
        <------------>      | 08
        *********           | 09
        <------------>      | 10
        test22:test22       | 11
        <------------>      | 12
        *********           | 13
        <------------>      | 14
        testxx:testxx       | 15
        <------------>      | 16
        Test #1: 0          | 17
        Test #2: 1          | 18
        Test #3: 4          | 19
        <------------>      | 20
        

        With one interpretation, all of 3,4,5,7,9,11,13,15,17,18,19 are “between” a pair of separator lines, so they could be marked
        In another interpreation, 3,4,5,9,13,17,18,19 are between pairs (but the 3,4,5 set “gobbled” the separator on 6, so 7 is not “between”
        In another interpretation, you want the separators also marked as part of the block, even though they aren’t between.

        All of these would take a different regex to accomplish.

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

          @PeterJones
          Hi sorry for my bad explanation
          I want the final result to mark and copy the lines 1,15

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP Offline
            PeterJones @Guest
            last edited by

            @adil-lagdah

            Just 1 and 15, without 7 and 11? Sorry, I see no way of doing that, because I have no way of distinguishing 1&15 from 7&11

            Maybe someone else can come up with something.

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

              @PeterJones

              okay, thank you bro

              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