如何在记事本++中替换模式中的文本

How to replace a text in pattern in notepad++

我需要替换以删除“-”中的所有内容,即我需要 76001、76605 等。如何在记事本 ++ 中替换这些在“-”之后具有不同数字的模式

76001 - 4
76001 - 5
76005 - 4
76005 - 5
76037 - 15
76037 - 16
76170 - 12
76170 - 13
76192 - 11
76192 - 12
76501 - 9
76501 - 10
76502 - 9
76502 - 10
76503 - 9
76503 - 10
76504 - 9
76504 - 10
76506 - 8

“查找内容”中使用 - \d+(前导空格),在“替换为”[=16]中使用空字符串=] 并确保选中 “正则表达式”