Delete all lines (not) matching a regex using Notepad++

前端 未结 1 1609
慢半拍i
慢半拍i 2021-01-04 11:47

How to delete all lines matching or not matching a regex in Notepad++?

In Vim, I\'d do the following to delete all matching lines:

:g/regex/d
         


        
相关标签:
1条回答
  • 2021-01-04 12:40

    In the Find dialog, on the Mark tab, you can bookmark lines that match... Then on the menu Search > Bookmark > Remove Unmarked Lines or Remove Bookmarked lines

    0 讨论(0)
提交回复
热议问题