Notepad++ regex -> newLine

前端 未结 5 1759
孤街浪徒
孤街浪徒 2021-01-06 03:02

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

5条回答
  •  梦毁少年i
    2021-01-06 03:30

    Searching a little bit more on regex in Notepad++ I discovered that the new line character is not \n as I expected (Windows), but the \n\r.

    So, my regex replace expression should be:
    Find: abc.*\r\n
    Replace with: (nothing, empty field)

提交回复
热议问题