I have text in the following lines:
tom
tim
john
will
tod
hello
test
ttt
three
I want to delete every third row using the above example, which I want to delete: john,hello,three
I know this requires some regular expression, but I'm not the best with it!
What I tried:
Search: ([^\n]*\n?){3} //3 in my head to remove every third
Replace: $1
The others I tried were just trying with help \n\retc. Again, not the best with regex. The above attempt, I thought, was close.
source
share