Community
    • Login

    Mark spesific lines before a suffix

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

      This post is deleted!
      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @A Former User
        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
        • ?
          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
            PeterJones @A Former User
            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
            • ?
              A Former User @PeterJones
              last edited by

              @PeterJones

              okay, thank you bro

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