Eclipse: Search for only a specific word in the Eclipse IDE

Is it possible to search only a specific word in the Eclipse IDE? For example, I need to find the word "sub".

But the problem is that when I did ctr l + H and typed the word “sub”, it created all the relevant results, such as submit ---- etc., but I want the exact word “sub” in my search .

Please let me know if possible.

Thanks in advance.

+5
source share
3 answers

Try using regular expressions in the file search dialog box (Ctrl + H). The modifier word boundaries \bcan be used like this:

Eclipse Regular Expression Search

\bsub\b eclipse , . .

, :

Word Boundaries Search

, "Enclosing Projects". , . , , .

+13

"/" (CTRL + F) :

Find replace

(CTRL + H) , , (/ ) , .

+1

Select a word and then press Ctrl + Alt + letter (G) and it will look for the word in which it is used.

0
source

All Articles