Community
    • Login

    Search Result to be the word, not the whole line

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    search word
    4 Posts 3 Posters 228 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.
    • Robert Or Janet DiebelR
      Robert Or Janet Diebel
      last edited by

      I wish either to be able to get the word I search for, not the whole line.
      Or to search within the search for just the word found in the first search, not the whole line. The background and foreground of the word in the first search is highlighted, (or is it styled? is there a difference). Can I search for just the highlighted word, not the whole line?
      All help much appreciated.
      Bob D.

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Robert Or Janet Diebel
        last edited by Alan Kilborn

        @Robert-Or-Janet-Diebel

        From your description it sounds as if you are using Find All in Current Document. This feature shows where your matching text is, within the context of the line it is in. If you wish to only find and highlight (select) only your matching text, perhaps simply use the Find Next feature.

        Robert Or Janet DiebelR 1 Reply Last reply Reply Quote 0
        • Robert Or Janet DiebelR
          Robert Or Janet Diebel @Alan Kilborn
          last edited by

          @Alan-Kilborn My search results:
          Search "φιλ.?\b" (65 hits in 1 file of 1 searched) [RegEx.]
          new 8 (65 hits)
          Line 2: Notepad++ - φιλ.
          ?\b
          Line 3: lemma.g:φιλ* in Top (NKJV)

          Line 10: Matthew 6:5 Και οταν προσευχη ουκ εση ωσπερ οι υποκριται οτι **φιλουσιν** εν ταις συναγωγαις και εν ταις γωνιαις των πλατειων εστωτες προσευχεσθαι οπως αν φανωσιν τοις ανθρωποις αμην λεγω υμιν οτι απεχουσιν τον μισθον αυτων
          Line 11: Matthew 10:37 Ο **φιλων** πατερα η μητερα υπερ εμε ουκ εστιν μου αξιος και ο φιλων υιον η θυγατερα υπερ εμε ουκ εστιν μου αξιος
          Line 12: Matthew 23:6 **φιλουσιν** τε την πρωτοκλισιαν εν τοις δειπνοις και τας πρωτοκαθεδριας εν ταις συναγωγαις
          

          This is the first search. Now I want to get all highlighted words from the first search in a list of just words. I hope not to have to do this one at a time.

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP
            PeterJones @Robert Or Janet Diebel
            last edited by

            @Robert-Or-Janet-Diebel ,

            Now I want to get all highlighted words from the first search in a list of just words.

            Instead of Find All in Current Document, you could use Search > Mark, then Mark All, then Copy Marked Text – this will put all the matched terms into the clipboard, and then you could paste into a new document (or wherever you wanted it).

            With the three lines you showed, and the regex you showed, when I follow that sequence, my Clipboard now contains:

            φιλουσιν
            φιλων
            φιλων
            φιλουσιν
            

            … which is what I think you want.

            1 Reply Last reply Reply Quote 2
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors