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 <------------> | 20With 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
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