And*_*w11 5 text notepad++ duplicates
我需要删除两个重复项,例如:
admin
user
admin
Run Code Online (Sandbox Code Playgroud)
结果:
user
我已经尝试过,但对记事本++不起作用
在应用此功能之前,您必须对文件进行排序(例如使用插件 TexFX)。
^(.+)(?:\R\1)+NOTHING. matches newline解释:
^ : Beginning of line
(.+) : group 1, 1 or more any character but newline
(?: : start non capture group
\R : any kind of linebreak
\1 : content of group 1
)+ : end group, must appear 1 or more times
Run Code Online (Sandbox Code Playgroud)