Removing duplicate strings/words(not lines) using RegEx(notepad++)

前端 未结 1 504
执念已碎
执念已碎 2021-01-06 21:27

I would like to know a way to remove duplicate words or strings in a text file(not lines) using notepad++ regex find tool.

I only saw ways to remove duplicate lines

1条回答
  •  悲哀的现实
    2021-01-06 22:03

    I'm not familiar with Notepad++, but assuming it uses standard syntax, replace

    \b(\w+)\b([\w\W]*)\b\1\b
    

    with

    $1$2
    

    0 讨论(0)
提交回复
热议问题