Reputation: 8145
In Eclipse
, using the File Search
feature, I am trying to do a file search over a large package for files containing <button
and class="someclass"
, but without type="button"
.
In a more general sense, how do I search for some text while excluding results of they contain another bit of text?
Upvotes: 1
Views: 1353
Reputation: 96016
CTRL + H and then choose File Search, there you can check the Regular expression option.
In order to get what you want, you can try entering something like this:
^(?!.*type="button").class="someclass".$
You can get more general regex information for Eclipse's File Search at this page.
Upvotes: 2