搜索“*”作为 Netbeans 查找选项中的字符串

发布于 2024-10-09 14:03:23 字数 140 浏览 0 评论 0原文

我想在我的项目中搜索包含“*”作为文本的文件。

我正在使用 netbeans IDE。

当我这样做时,将在项目中查找选项,它会返回所有数据,而不是具体找到“*”的位置。 它将 * 视为任何单词。

有人有这样做的想法吗?

I want to search the files containing "*" as a text in my project.

I am using netbeans IDE.

When I do this going to find option in the project it returns all the data and not specfic where "*" is found.
It considers * as any word.

Does anyone have idea of doing it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

情丝乱 2024-10-16 14:03:23

在文件搜索中,它将像 * 一样工作。

在项目搜索中,您搜索 \*,它会查找 *

当您进行搜索时对于 * ,它假定它是一个 reg.ex 并匹配所有内容。所以你必须使用转义 \

In file search it will work as it is with *

In project search you search for \* and it will look for *

When you do search for * it assumes it as a reg.ex and matches to all.So you will have to use escape \

故人如初 2024-10-16 14:03:23

使用\*。这会转义 * 并将其视为常规字符。

Use \*. This escapes the * and treats it as a regular character.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文