xcy*_*teh 5 notepad++ duplicates
我有一个.txt文档,其中包含一个单词,后跟一行中的日期,依此类推.
Notepad ++如何识别不同行中的相同单词并删除重复行?
假设同一单词的同一单词出现的日期可能不同,并且您希望保留文件中第一个出现的日期,那么这应该可行(确保您的文件以新行结尾):
(\s*\w+ )(.*\r\n)((.*\r\n)*)\1.*\r\n\1\2\3我已经在文件上对此进行了测试:
testing330 05:09-24/08
whatever 10:55-25/08
testing 15:57-26/08
testing667 19:22-30/08
linux 00:29-31/08
testing330 00:29-31/08
windows 12:25-31/08
Run Code Online (Sandbox Code Playgroud)
结果是:
testing330 05:09-24/08
whatever 10:55-25/08
testing 15:57-26/08
testing667 19:22-30/08
linux 00:29-31/08
windows 12:25-31/08
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
33727 次 |
| 最近记录: |