如何在Eclipse中搜索文件,以便结果显示不包含搜索字词的文件? [英] How do I search files in Eclipse so the results shows files that do NOT contain the search term?

查看:154
本文介绍了如何在Eclipse中搜索文件,以便结果显示不包含搜索字词的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse编辑器中,如果我去搜索 - >文件,我可以搜索包含我的搜索字词的文件。我想做的是找到不要包含我的搜索字词的所有文件。这样做可以吗?

In Eclipse editor, if I go Search->File, I can search for files that contain my search term. What I want to do is find all of the files that DO NOT contain my search term. Is that possible?

推荐答案

尝试检查正则表达式选项,然后输入像[^ term]或(? ) - 这两者的含义是不是术语,但它们稍有不同(请参考一些RegExp文档,如这个)。

Try checking "regular expression" option and then input somethign like [^term] or (?!term) -- meaning of both of this is 'not term' but they are slightly different (please refer to some RegExp documentation like this).

这篇关于如何在Eclipse中搜索文件,以便结果显示不包含搜索字词的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆