Notepad++ Regular expression find and delete a line

后端 未结 5 1383
梦如初夏
梦如初夏 2021-01-30 10:21

I am trying to find and delete a line using Notepad++

I need to find lines in this file (UNIX Format) that match the string \'#RedirectMatch Permanent

5条回答
  •  闹比i
    闹比i (楼主)
    2021-01-30 11:02

    Step 1

    • SearchFind → (goto Tab) Mark
    • Find what: ^Session.*$
    • Enable the checkbox Bookmark line
    • Enable the checkbox Regular expression (under Search Mode)
    • Click Mark All (this will find the regex and highlights all the lines and bookmark them)

    Step 2

    • SearchBookmarkRemove Bookmarked Lines

提交回复
热议问题