[英]Search “*” as a string in Netbeans Find option
I want to search the files containing "*" as a text in my project. 我想在项目中搜索包含“ *”作为文本的文件。
I am using netbeans IDE. 我正在使用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? 有人有这样做的想法吗?
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 \\
当您搜索
*
它将假定它为reg.ex并与所有匹配。因此,您必须使用escape \\
Use \\*
. 使用
\\*
。 This escapes the *
and treats it as a regular character. 这转义
*
并将其视为常规字符。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.