mellowest
03-28-2018, 03:03 PM
Hello,
First. I want to thank the forum. It's really cool what you guys do for us newbies.
I have a two part question. Not sure if I should post separately, and I will if that makes sense, but I feel they are related.
So first. I have a block of text:
I want to keep this.
I want to delete this.
I want to keep this.
The end result would be, and I have no clue how to get it to delete the line in the middle.
I want to keep this.
I want to keep this.
Second:
I want to keep this.
IDnumber sometext1
I want to keep this.
IDnumber sometext2
The end result will be:
I want to keep this.
I want to keep this.
For the latter, I imagine it will be a while loop, but I can't figure out how to find the first string and then move to the end, not to mention deleting the resulting line in between. Please assume each line ends in a paragraph break.
Thank you for any help.
First. I want to thank the forum. It's really cool what you guys do for us newbies.
I have a two part question. Not sure if I should post separately, and I will if that makes sense, but I feel they are related.
So first. I have a block of text:
I want to keep this.
I want to delete this.
I want to keep this.
The end result would be, and I have no clue how to get it to delete the line in the middle.
I want to keep this.
I want to keep this.
Second:
I want to keep this.
IDnumber sometext1
I want to keep this.
IDnumber sometext2
The end result will be:
I want to keep this.
I want to keep this.
For the latter, I imagine it will be a while loop, but I can't figure out how to find the first string and then move to the end, not to mention deleting the resulting line in between. Please assume each line ends in a paragraph break.
Thank you for any help.