删除特定字符串后的所有内容(文本的其余部分)

Delete Everything(the rest of the text) after a specific string

如何删除像 'gnirts' 这样的字符串后的所有内容。这可能会让您更好地理解: Before

and after

使用查找和替换:

  1. 按 CTRL-H 打开“替换”对话框
  2. 将 gnirts.* 输入 Find what
  3. Replace with 留空
  4. Select Regular expression.matches newline
  5. 点击 Replace