I use Notepad++ and I need to delete all lines starting with, say \"abc\".
Attention, I don\'t need to replace the line starting with \"abc\" with a empty line, but
Press Ctrl+H to bring up the Replace
window. Put
^abc.*(\r?\n)?
in the Find what
and leave Replace with
empty. Select Reqular expression
and hit Replace All
.
This reqular expression handles all the edge cases:
abc
abc
and there is no new line at the end of the file.