Community
    • Login

    ignore double filtering in same line when find word

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 3 Posters 1.4k Views 3 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.
    • Junseok ParkJ Offline
      Junseok Park
      last edited by

      when I find some word with find all function then there are several lines in find result window if the word is several times in same line.
      how could I fix it ?

      Scott SumnerS 1 Reply Last reply Reply Quote 0
      • Scott SumnerS Offline
        Scott Sumner @Junseok Park
        last edited by Scott Sumner

        @Junseok-Park

        You can’t. It isn’t broken. That’s how it is designed to work. However, you could craft a regular expression search to find just ONE of the matches per line if that’s what you want.

        1 Reply Last reply Reply Quote 0
        • Jim DaileyJ Offline
          Jim Dailey
          last edited by Jim Dailey

          @Junseok-Park
          For example, searching in regular expression mode for

          XYZ.*\K$
          

          would find every line containing “XYZ” (one time only, no matter how many times “XYZ” was on a line) and nothing in the find window would be highlighted.

          If you want to highlight the first “XYZ” and everything after it, leave the “\K” out of the regex.

          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