Community
    • Login

    Remove duplicate lines not possible?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    24 Posts 6 Posters 9.3k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • CletosC Offline
      Cletos
      last edited by

      Hello guy038,

      Thank you you very much for the new method!

      1 Reply Last reply Reply Quote 1
      • Alan KilbornA Offline
        Alan Kilborn @Sofistanpp
        last edited by Alan Kilborn

        @Sofistanpp

        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.

        1 Reply Last reply Reply Quote 2
        • endolithE Offline
          endolith @Cletos
          last edited by endolith

          @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?

          Alan KilbornA 1 Reply Last reply Reply Quote 0
          • Alan KilbornA Offline
            Alan Kilborn @endolith
            last edited by

            @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.

            1 Reply Last reply Reply Quote 2

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors