Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete a Line which contains a specific word

I want to delete all lines which contains the word "False"

For example, if I have a Textfile that contains the following :

Before

[email protected]|J|1983>2012>3000|Good|[0=%]
[email protected]|N|1985>2012>3000|False|[~~~'#'***+++~~~]
[email protected]|N|1985>2012>3000|Good|[$"$!]|Number 2123

After

[email protected]|J|1983>2012>3000|Good|[0=%]
[email protected]|N|1985>2012>3000|Good|[$"$!]|Number 2123

Which regex I should use in Notepad++ to delete the unwanted lines?

like image 707
Eule2000 Avatar asked Nov 30 '22 06:11

Eule2000


1 Answers

The last version of Notepad++ (v6.0) supports PCRE, so you can do:

search for : .*?False.*\r?\n
replace by : nothing

like image 94
Toto Avatar answered Dec 05 '22 17:12

Toto