"dot matches newline" must be activated. Search and replace by "" (empty string) removes duplicate lines anywhere in text.
Example for Notepad++ use shown under http://stackoverflow.com/questions/3958350/removing-duplicate-rows-in-notepad