Community
    • Login

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

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    9 Posts 6 Posters 829 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.
    • sabry fargS
      sabry farg
      last edited by

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

      Lycan ThropeL mkupperM 2 Replies Last reply Reply Quote 1
      • Lycan ThropeL
        Lycan Thrope @sabry farg
        last edited by

        @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

        sabry fargS PeterJonesP 2 Replies Last reply Reply Quote 1
        • sabry fargS
          sabry farg @Lycan Thrope
          last edited by sabry farg

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

          Alan KilbornA 1 Reply Last reply Reply Quote 0
          • Thomas KnoefelT
            Thomas Knoefel
            last edited by Thomas Knoefel

            @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
            • Alan KilbornA
              Alan Kilborn @sabry farg
              last edited by

              @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
              • PeterJonesP
                PeterJones @Lycan Thrope
                last edited by

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

                Lycan ThropeL 1 Reply Last reply Reply Quote 1
                • Lycan ThropeL
                  Lycan Thrope @PeterJones
                  last edited by Lycan Thrope

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

                  Alan KilbornA 1 Reply Last reply Reply Quote 1
                  • Alan KilbornA
                    Alan Kilborn @Lycan Thrope
                    last edited by Alan Kilborn

                    @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
                    • mkupperM
                      mkupper @sabry farg
                      last edited by

                      @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
                      • First post
                        Last post
                      The Community of users of the Notepad++ text editor.
                      Powered by NodeBB | Contributors