Delete all lines except lines with a specific Word - Notepad ++

I exported a backup report that shows the status of the backup of the servers, the servers have parental work and work with children. The report status refers only to lines associated with the parental task and children's tasks, and provides irrelevant information. The parent assignment contains the keyword "Weekly." How to show a report only to display lines with the word Weekly, all other lines should be deleted. Thanks.

+6
source share
1 answer

1- Suppose this is your file and you want to delete all lines that do not have "WScript".

enter image description here

2- Find the regex as shown below. BookMark all the necessary lines. enter image description here

3- Then delete the unlabeled lines enter image description here

+18
source

All Articles