2017-06-21 34 views

回答

0

不太了解您的需求,但我假设您要删除包含单词“test”的所有行。

这里有一个方法来完成这项工作:

  • 按Ctrl + ^h
  • 查找内容:^.*\btest\b.*\R
  • 替换:Leave empty
  • 更换所有

说明:

^  : begining of line 
.*  : 0 or more any character but newline 
\b  : word boundary 
test : literally 'test' 
\b  : word boundary 
.*  : 0 or more any character but newline 
\R  : any kind of linebreak 

不检查. matches newline