Mon*_*RPG 11 windows search windows-8.1
我发现在 Windows 文件夹搜索中,字母破折号“-”可以从搜索结果中删除以下单词。
但是我有包含破折号“-”的文件
那么我该如何过滤它们呢?
例如,我将图像命名为
“我的家”
但是当我输入以下内容时,什么也没有出现
视窗 8.1
在这里它告诉了以下内容
以下是与文本搜索有关的 AQS 运算符列表:
NOT/- : Both “not” as well as prefixing a dash will tell your search to exclude items that include the following term.
AND/+ : Both “and” as well as prefixing a plus sign will force your search to only include items that match for both terms.
“” : Using quotes will force a search to filter for an exact phrase.
Run Code Online (Sandbox Code Playgroud)

Dav*_*ill 10
-?以下搜索表达式将匹配所有包含-字符的文件:
~*-*
Run Code Online (Sandbox Code Playgroud)
解释:
~ 字面匹配
* 通配符匹配
- 匹配 -
* 通配符匹配
So~*-*将匹配所有文件名与文字之前的-任何字符和文字之后的任何字符-
你也可以"搜索表达式,所以
"*-*"
Run Code Online (Sandbox Code Playgroud)
也会起作用。
小智 5
我对名为hello-world的文件也遇到了类似的问题。因此,如果我尝试仅搜索“hello”一词,则可以找到该文件。如果我尝试搜索“世界”一词,则找不到该文件。在我的搜索中,我没有使用-。但是,如果文件名包含- ,似乎会出现一些问题。
在尝试更改索引选项和其他复杂的内容后,我发现最好的解决方案是使用 * 进行搜索。
例如,搜索词*world会找到我的文件。现在我将仅使用 * 进行搜索。
| 归档时间: |
|
| 查看次数: |
20944 次 |
| 最近记录: |