• Login
Community
  • Login

How do I search for multiple names at once? Notebad++

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
9 Posts 6 Posters 849 Views
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.
  • S
    sabry farg
    last edited by Dec 3, 2023, 8:22 AM

    How do I successfully search for several names at once?
    a tool Notebad++
    Example
    ahmed
    saeed
    emad
    sameer

    L M 2 Replies Last reply Dec 3, 2023, 8:39 AM Reply Quote 1
    • L
      Lycan Thrope @sabry farg
      last edited by Dec 3, 2023, 8:39 AM

      @sabry-farg ,
      By reading the manual and learning to use regex and/or at the least, the searching part of the Online Manual here:

      Here is a screen shot of the needed setup you need to search for each name, in sequence using the “Find Next” button.

      multinamesearch.PNG

      S P 2 Replies Last reply Dec 3, 2023, 9:55 AM Reply Quote 1
      • S
        sabry farg @Lycan Thrope
        last edited by sabry farg Dec 3, 2023, 9:58 AM Dec 3, 2023, 9:55 AM

        @Lycan-Thrope
        The method did not work for me
        No names found
        alt text
        https://www6.0zz0.com/2023/12/03/09/586722847.jpg

        A 1 Reply Last reply Dec 3, 2023, 12:51 PM Reply Quote 0
        • T
          Thomas Knoefel
          last edited by Thomas Knoefel Dec 3, 2023, 11:53 AM Dec 3, 2023, 11:26 AM

          @sabry-farg said in How do I search for multiple names at once? Notebad++:

          How do I successfully search for several names at once?

          As already explained, you can use Regex for this purpose, or you can use MultiReplace Plugin you can install via Plugin Admin to generate a list of names for masking all at once. Alternatively, you can select the names separately in the list to search for them.cd8823a1-71d0-4c3b-a34b-95a6b6e2f0bd-image.png

          1 Reply Last reply Reply Quote 2
          • A
            Alan Kilborn @sabry farg
            last edited by Dec 3, 2023, 12:51 PM

            @sabry-farg said in How do I search for multiple names at once? Notebad++:

            The method did not work for me

            That’s because you didn’t read and/or can’t follow instructions.

            You were told that this is what to search for, in general: (a)|(b)|(c)

            You searched for (a)(b)(c).

            Thus, “did not work”.

            1 Reply Last reply Reply Quote 1
            • P
              PeterJones @Lycan Thrope
              last edited by Dec 3, 2023, 3:29 PM

              @Lycan-Thrope said in How do I search for multiple names at once? Notebad++:

              Here is a screen shot of the needed setup

              Screenshots are helpful, but as we point out to people asking questions, one cannot copy/paste text from a screenshot , so a screenshot alone makes it much harder to replicate results: if I highly encourage text blocks from people asking questions, I would be hypocritical if I didn’t highly encourage text blocks or red text from people answering questions, as well.

              L 1 Reply Last reply Dec 3, 2023, 8:55 PM Reply Quote 1
              • L
                Lycan Thrope @PeterJones
                last edited by Lycan Thrope Dec 3, 2023, 8:58 PM Dec 3, 2023, 8:55 PM

                @PeterJones ,
                My bad. My reason for the screenshot, however, was so that he could SEE the search box settings necessary, as well as the needed regex, but in hindsight, I can see how the | symbol could be difficult to see, now. The only thing I could have changed was the Wrap around option, in case he started somewhere other than the beginning, but I usually search from the beginning by habit and don’t want reiteration.
                For cut and paste purposes, this is what you need to put in that search box.
                (ahmed)|(saeed)|(emad)|(sameer)

                A 1 Reply Last reply Dec 3, 2023, 10:06 PM Reply Quote 1
                • A
                  Alan Kilborn @Lycan Thrope
                  last edited by Alan Kilborn Dec 3, 2023, 10:06 PM Dec 3, 2023, 10:06 PM

                  @Lycan-Thrope said in How do I search for multiple names at once? Notebad++:

                  I can see how the | symbol could be difficult to see, now

                  I can’t. It’s obvious. OP just didn’t take care in noticing it.
                  I think the screenshot is fine for this case, and the text need not be provided. Really, giving the text (as copyable text) is only necessary when a regular expression is long and complicated, where a user retyping it could easily cause a typo to occur – not so the case here.

                  1 Reply Last reply Reply Quote 1
                  • M
                    mkupper @sabry farg
                    last edited by Dec 4, 2023, 12:45 AM

                    @sabry-farg
                    Using regular expression mode you search for

                    ahmed|saeed|emad|sameer

                    The | symbol is usually on keyboards above the enter key. It’s known as vertical line, vertical bar, or pipe symbol. It has a rather long article on Wikipedia. https://en.wikipedia.org/wiki/Vertical_bar

                    Nearly always we will see this in parentheses such as:

                    (ahmed|saeed|emad|sameer)

                    which then makes the name available when doing a search/replace using either \1 or $1

                    1 Reply Last reply Reply Quote 3
                    8 out of 9
                    • First post
                      8/9
                      Last post
                    The Community of users of the Notepad++ text editor.
                    Powered by NodeBB | Contributors