Remove duplicate lines not possible?
-
Hello guy038,
Thank you you very much for the new method!
-
run that regex in backward direction from the last line
Searching backwards with regex is “discouraged” and is partially disabled in Notepad++.
The reason, I think, is that thru a given text, if you search backwards versus forwards, you won’t get the same hits. Sometimes (simpler regexes, as you noted) you will, but not always (depends upon the regex and maybe the data).Enabled the Backward direction button via an AutoHotkey script
In general, enabling disabled controls and then performing an operation and expecting good results is a dubious premise.
-
@Cletos Yes this feature is buggy, I see it fairly often. Usually I can click “Remove duplicate lines” and it removes them all, regardless of order, but sometimes it doesn’t remove any of them. Something wrong with the software, but I can’t pinpoint what’s wrong. It depends on the text? Or I have to create a new blank document and then it works there, and then copy it back into the original?
-
@endolith said in Remove duplicate lines not possible?:
It depends on the text?
Could be a line-ending problem?
If line-endings are different on otherwise duplicate lines, they won’t be considered true duplicates.