Mark spesific lines before a suffix
-
This post is deleted! -
@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.
-
@PeterJones
Hi sorry for my bad explanation
I want the final result to mark and copy the lines 1,15 -
@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.
-
okay, thank you bro