问题

我有一个长文档的命令.使用notepad ++或regex,我要删除包含"help"的所有行,包括keyboard_help等.

如何做到这一点?



解决方法

这也可以使用Notepad ++

  • Goto the search menu Ctrl+F and there to the "Mark" tab. Check "Bookmark line" (if there is no "Mark" tab update to the current version).

  • Then just enter your search term and click "Mark All"

    ==> All line containing the search term are bookmarked.

  • Now go to the Menu "Search -> Bookmark -> Remove Bookmarked lines"

  • Done.




相关问题推荐