Tutorial so today we’ll be talking about how to delete lines contains a word in Notepad ++ or string. So are you ready,let’s get started delete lines contains in the Notepad

So let’s for example say that we have a text as you can see here in the example of text let’s say that we want to remove all lines that contain took the word radar. So if I highlight this words radar as you can see here we have three lines that contain this word so line number one line number six and line number ten. So let’s say that we want to remove all these three lines that contain that specific string.

Method 1 Delete Lines contains Notepad

  • So there are two ways to do it so the first method is very simple you go to the search menu then find.
  • Then we go to the marked up and here find what you write down the word or string that corresponds online you want to delete.
  • Some I want to delete all the lines that contain the word rather, so I tap it here then I check the box bookmark line okay.
  • So we’ll leave our search world as normal then we hit mark all if I close as you can see all the lines that contain the word radar has been bookmarked.How to Delete Lines Contains a Word in Notepad
  • Now what I have to do is to delete the book to move back the lines so to delete the bookmark lines it’s also very simple you go to search then bookmark then as you can see here there’s an option to remove bookmark line.How to Delete Lines Contains a Word in Notepad
  • So I click on it voila as you can see all the lines that contain the word the word raita has been deleted. so this is the first method.

Method 2 Delete Lines contains Notepad

  • Now let me show you the second method so come back to our initial text.
  • If we want to remove these three lines there is another way. So we go once again to the search menu but this time we go to the replace dialog box.How to Delete Lines Contains a Word in Notepad
  • So we hit replace and in defending what text now we type our words, but we have to write at the beginning of this word dot star and end of it also dot stock as you can see here, but in search mode we have to highlight a regular expression because here we are using actually a regular expression.
  • We highlight this little radio button then and we make sure that the replace with is empty is blank then we hit replace all then we close as you can see all the line has been deleted but there are some empty lines that remained.How to Delete Lines Contains a Word in Notepad
  • So to delete them is also very simple you go to the edit menu then learn operations.
  • As you can see here we have the option to remove empty lines. So we click on it, voila all the lines that contain the word rather has been deleted.

There are two methods in order to do that as always I hope it has been informative for you and I want to thank you for viewing bye bye.