Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在我的项目中搜索包含“*”作为文本的文件。
我正在使用 netbeans IDE。
当我这样做会在项目中找到选项时,它会返回所有数据,而不是特定的“*”所在的位置。它将 * 视为任何单词。
有没有人有这样做的想法?
在文件搜索中,它将按原样工作*
*
在您搜索的项目搜索中\*,它将寻找*
\*
当你搜索它时,*它假定它是一个 reg.ex 并与 all.ex 匹配。所以你将不得不使用 escape\
\
使用\*. 这会转义*并将其视为常规字符。