使用 Notepad++ 替换

Replace using Notepad++

我需要在文本文件(它是一个字幕文件)中查找和替换特定文本。我正在使用 Notepad++。

这是一个示例:

1 
10:00:12,042 --> 10:00:15,959 
This is text.

2 
10:00:17,542 --> 10:00:21,709 
This is another text

只要有新行和回车 return (\n\r) 后跟 '10:' 并用 '00:[= 替换,我想查找并替换26=]'

1 
00:00:12,042 --> 10:00:15,959 
This is text.

2 
00:00:17,542 --> 10:00:21,709 
This is another text

能否建议我应该在 Notepad++ 查找和替换对话框中使用正则表达式?

我试过使用:

\n\r10:

但不断收到“找不到文本“\n\r10:”'

搜索 ^10: 并将其替换为 00:

Select Search Mode > Regular Expression

查找内容:^10

替换为:00