I want to delete the whole line if the line contains a specific word for example \"cat\".
If \"cat\" is in this line, delete the whole
It is a two step process in notepad++. First do a regex replace
Find what: ^(.*?)(cat)(.*?)$
Replace with:
Next do a extended replace with
Find what: \r\n\r\n
Replace with: \r\n
Assuming your file was created on Windows. However this will also remove all lines that previously had no content.
Edit: Probably better to do the bookmark thing the other guy suggested.