Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道一种使用 notepad++ 正则表达式查找工具删除文本文件(不是行)中重复单词或字符串的方法。
我只看到了使用 TextFx 删除重复行的方法,这不是我想要的。
例子 -
123 / 789 123 / 321
删除 123 将导致
123 / 789 / 321
我不熟悉 Notepad++,但假设它使用标准语法,请替换
\b(\w+)\b([\w\W]*)\b\1\b
和
$1$2