How to delete all the lines containing a specific word in Notepad++

02.11.2015
1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5.00 out of 5)
Loading...

A Google search may return thousands of results on ways to delete all the lines that have a specific word in Notepad++. However, it is inconvenient that most of these methods involve regular expressions. I am going to offer you a simpler solution. Note that the task is not to delete all instances of a single word, the task is to get rid of each and every line that contains a specific word.

Here are detailed instructions with pictures of how to do this:

1. Open the file in Notepad++ and press Ctrl + f to search for the desired word in the tab “Mark”:

How to delete all the lines containing a specific word in Notepad++

2. After you’ve done this, each line with the desired word in it will be marked. The last step is to remove these lines. To do this, click Search > Bookmark and then click “Remove Bookmarked Lines”:

How to delete all the lines containing a specific word in Notepad++

Done! That’s as simple as it gets.

Leave a Reply

Your email address will not be published. Required fields are marked *