在 Notepad++ 中查找超过 1 行文本

Find More than 1 Line of Text in Notepad++

有一个问题和四个选项,然后有<----->表示问题结束。我想检查 100 万行的文档中是否包含某些问题。所以与其一一寻找。我想批量搜索它们。

ATP 中一个磷酸键的断裂释放能量:
谁发现了暗反应的细节?

如何在整个文档中只找到这些行?

The breaking of one phosphate bond from ATP releases energy:
7.3 Kcal
7.9 Kcal
7.5 Kcal
7.1 Kcal
<----->
Loss of electron is called:
Oxidation
Reduction
Redox Reaction
Oxidation and reduction reaction
<----->
Who discovered the details of dark reactions?
Malvin Calvin
Schwan
Schleiden
Robert Brown
<----->
  • Ctrl+F
  • 查找内容:(?:The breaking of one phosphate bond from ATP releases energy:|Who discovered the details of dark reactions\?).+?<----->
  • 检查 环绕
  • 检查 正则表达式
  • 检查 . matches newline
  • 全部替换

解释:

(?:     # non capture group, matches literally
    The breaking of one phosphate bond from ATP releases energy:
|       # OR
    Who discovered the details of dark reactions\?
)       # end group
.+?     # 1 or more any character, not greedy
<-----> # literally

截图: