我有多个电子邮件地址。我需要找到并删除所有(包括找到一个)。这在notepad++中是可能的吗?
示例:epshetsky@test.com, rek4@test.com, rajesh1239@test.com, mohanraj@test.com, sam@test.com, nithin@test.com, midhunvintech@test.com, karthickgm27@test.com, rajesh1239@test.com, mohanraj@test.com, nithin@test.com,
我需要像这样的结果
epshetsky@test.com, rek4@test.com, sam@test.com, nithin@test.com, midhunvintech@test.com, karthickgm27@test.com,
在notepad++中怎么做?
发布于 2016-02-12 05:21:02
如果可以更改行的顺序,您可以这样做:
使用编辑行操作对行进行排序
内容:
它的工作原理:排序将重复项放在彼此后面。find匹配一行^(.*\r?\n)
并捕获\1
中的行,然后继续并尝试在第一个匹配项后面查找\1
一次或多次(+
)。这样的重复数据块(如果存在)将被替换为空。
\r?\n
应该能很好地处理Windows和Unix的线条。
发布于 2016-02-11 09:23:12
您需要textFX插件。然后,只需遵循以下说明:
Paste the text into Notepad++ (CTRL+V). ...
Mark all the text (CTRL+A). ...
Click TextFX → Click TextFX Tools → Click Sort lines case insensitive (at column)
Duplicates and blank lines have been removed and the data has been sorted alphabetically.
就我个人而言,我会使用sort -i -u source >dest而不是notepad++
发布于 2021-05-26 13:44:23
您只需编辑->行操作->移除重复行
https://stackoverflow.com/questions/35329122
复制相似问题