There are times when we have to search for the occurrences of multiple words in multiple files. In eclipse you can perform this search using File Search with regex expressions.
To understand the expression above, you can refer to http://www.eclipse.org/tptp/home/downloads/installguide/gla_42/ref/rregexp.html
- Open Search > File dialog.
- In the Containing text: field enter (?<!^\s*(//|\*).*)(jack|jim)
- Select the Regular expression check box and hit the search button.
To understand the expression above, you can refer to http://www.eclipse.org/tptp/home/downloads/installguide/gla_42/ref/rregexp.html
how to get only JACK and JIM ???
ReplyDeleteYES! Why can't anyone answer that question on any of these pages? I also need to know how to find two terms that both exist across the file
ReplyDelete