Eclipse whole word search in Workspace

Although not very obvious, it is actually possible to perform a whole word search in your eclipse workspace.

To do so, click on “Search” (from the menu) and then “File” from the sub-menu.

Make sure to select “Regular expression” and then you can use any regex expression you can come up with, for the whole word it’s \byourword\b so for example to search for johny you will write \bjohny\b

There’s lots of info about regular expression on the internet , you can perform anything with these expressions and they can get pretty complicated!

Enjoy :)

Share
This entry was posted in eclipse, Programming, Project, Tutorials. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>