I have data like follows:
- gooddata
- gooddata
- gooddata
FF
randomdata
irrelevantdata
headers
gooddata
gooddata
gooddata
FF
and it goes on repeatedly for over thousands of lines. I have two proposed solution ideas
Notepad++
Create a regex to Find x criteria and delete subsequent of y number of lines
or
VBA
Find "FF" and delete everything until "---". find next "FF" and delete everything until next "---" .
So the output intended be like:
- gooddata
- gooddata
- gooddata
- gooddata
- gooddata
- gooddata
Thanks for your help.
You can do a regular expression replace in Notepad++.
Find : FF.*?\-\-\-
Replace with: (Blank Text)
Search Mode: Regular Expression
Check . Match New Lines checkbox
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.