Search Result to be the word, not the whole line
-
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. -
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.
-
@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.
-
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.