关于正则表达式:Notepad ++如何删除重复

Notepad++ how to delete duplicate

本问题已经有最佳答案,请猛点这里访问。

我需要删除区分大小写的重复行。

1
2
3
Hello
hello
Hello

需要:

1
2
Hello
hello

我怎样才能做到这一点?


从这里:

First download and install the TextFX plugin, instructions given
below.

  • Download the plugin from SourceForge: http://downloads.sourceforge.net/project/npp-plugins/TextFX/TextFX%20v0.26/TextFX.v0.26.unicode.bin.zip

  • Open the zip file and extract NppTextFX.dll

  • Place NppTextFX.dll in the Notepad++ plugins directory, such as: C:\Program Files
    otepad++\plugins
  • Start Notepad++, and TextFX will be one of the file menu items
  • Check the following options
  • a) +Sort ascending

    b) +Sort outputs only UNIQUE (at column) lines

    enter image description here

  • Then select a block of text (ctrl+A to select the entire document). Then click"Sort lines case sensitive" or"Sort lines case
    insensitive"