【发布时间】:2017-11-22 09:50:41
【问题描述】:
我正在使用 Notepad++ 并处理大约 400MB 的巨大日志文件。如果特定行中存在某个字符串,是否可以将特定文本放在行首? 例如:
输入
This is a sentence
This is a sentence
This is the sentence
This is a sentence
我希望在带有单词“the”的行前面添加文本 YES
输出
This is a sentence
This is a sentence
YES This is the sentence
This is a sentence
【问题讨论】:
-
我不知道是否使用编辑器,但如果使用编程语言,它只是使用循环和 strpos