regex in SearchEverything

本文介绍了一款名为 Everything 的高效文件搜索工具,它能够迅速查找计算机中的文件及文件夹。文章详细解释了如何使用搜索语法、通配符、宏、修饰符等功能,并提供了丰富的示例帮助用户掌握高级搜索技巧。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

SearchEverything

Use the search edit to type in a search.

Everything will display the results immediately.
Syntax

Operators

space   AND
|       OR
!       NOT
< >     Grouping
" "     Search for an exact phrase

Wildcards

*   Matches zero of more characters.
?   Matches one character.

Wildcards match the whole filename. Disable Match whole filename when using wildcards to match wilcards anywhere in the filename.

Macros

quot:   Literal double quote (")
apos:   Literal apostrophe (')
amp:    Literal ampersand (&)
lt:     Literal less than (<)
gt:     Literal greater than (>)
#x:     Literal unicode character x code.

Modifiers

ascii:
utf8:
noascii:    Enable or disable fast ASCII case comparisons.
case:
nocase:     Match or ignore case.
diacritics:
nodiacritics:   Match or ignore accent marks.
file:
nofileonly:     Match files only.
folder:
nofolderonly:   Match folders only.
path:
nopath:     Match the full path and file name or just the filename.
regex:
noregex:    Enable or disable regex.
wfn:
wholefilename:
nowfn:
nowholefilename:    Match the whole filename or match anywhere in the filename.
wholeword:
ww:
nowholeword:
noww:   Match whole words or match anywhere in the filename.
wildcards:
nowildcards:    Enable or disable wildcards.

Functions

attrib:<attributes>
attributes:<attributes>     Search for files and folders with the specified file attributes.
child:<filename>    Search for folders that contain a child with a matching filename.
dateaccessed:<date>
da:<date>   Search for files and folders with the specified date accessed.
datecreated:<date>
dc:<date>   Search for files and folders with the specified date created.
datemodified:<date>
dm:<date>   Search for files and folders with the specified date modified.
daterun:<date>
dr:<date>   Search for files and folders with the specified date run.
dupe:   Search for duplicated filenames.
empty:  Search for empty folders.
ext:<list>  Search for files with a matching extension in the specified semi-colon delimited extension list.
fsi:<index>     Search for files and folders in the specified zero based internal file system index.
len:<length>    Search for files and folders that match the specified filename length.
parents:<count>     Search for files and folders with the specified number of parent folders.
recentchange:<date>
rc:<date>   Search for files and folders with the specified recently changed date.
root:   Search for files and folders with no parent folders.
runcount:<count>    Search for files and folders with the specified run count.
size:<size>     Search for files with the specified size in bytes.
type:<type>     Search for files and folders with the specified type.

Function syntax

function:value  Equal to value.
function:<=value    Less than or equal to value.
function:<value     Less than value.
function:=value     Equal to value.
function:>value     Greater than value.
function:>=value    Greater than or equal to value.
function:start..end     Is in the range of values from start to end.
function:start-end  Is in the range of values from start to end.

Size Syntax:

size[kb|mb|gb]

Size Constants:

empty   
tiny    0 KB < size <= 10 KB
small   10 KB < size <= 100 KB
medium  100 KB < size <= 1 MB
large   1 MB < size <= 16 MB
huge    16 MB < size <= 128 MB
gigantic    size > 128 MB
unknown     

Date Syntax:

year

month/year or year/month depending on locale settings

day/month/year, month/day/year or year/month/day depending on locale settings

Date Constants:

today

yesterday

<last|past|prev|current|this|coming|next><year|month|week>

<last|past|prev|coming|next><x><years|months|weeks>

<last|past|prev|coming|next><x><hours|minutes|mins|seconds|secs>

january|february|march|april|may|june|july|august|september|october|november|december

jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec

sunday|monday|tuesday|wednesday|thursday|friday|saturday

sun|mon|tue|wed|thu|fri|sat

unknown

Attribute Constants:

A   Archive
C   Compressed
D   Directory
E   Encrypted
H   Hidden
I   Not content indexed
L   Reparse point
N   Normal
O   Offline
P   Sparse file
R   Read only
S   System
T   Temporary
V   Device

Search options

Search options can be toggled from the Search menu.

Enabled search options are displayed in the right of the status bar. Double click the status bar part to disable the search option. Right click the status bar to show a list of search options.

Match Case

Match or ignore case.

Match Whole Words

Match whole words or allow the match to occur any where in the filename.

Match Path

match against the full path and filename or just the filename.

Match Diacritics.

Match or ignore accent marks.

Enable Regex

Enable or disable regular expressions.

Everything
Audio
Compressed
Document
Executable
Folder
Picture
Video

Match the specified type only. See Filters for more information.

Advanced Search

Everything Advanced Search

The Everything advanced search can help you define a more complex search.

To show the advanced search dialog:

In "Everything", from the Search menu, click Advanced Search.
  • Requires Everything 1.4
    Filters

Filters are predefined searches. Only one filter can be active at a time. Filters can be toggled from the Search menu.

To create a new filter from the current search:

In Everything, from the Search menu, click Add to filters....
Type in a Name.
Click OK.

To edit an existing filter:

In Everything, from the Search menu, click Organize filters....
Select a filter.
Click Edit.

Content Searching

Warning: content searching is extremely slow.

File content is not indexed.

Please combine content: functions with other filters for the best performance.

Content search functions:

content: - Search file content using the associated iFilter. If no iFilter exists UTF-8 content is used.

ansicontent: - File contents are treated as ANSI text.

utf8content: - File contents are treated as UTF-8 text.

utf16content: - File contents are treated as UTF-16 (Unicode) text.

utf16becontent: - File contents are treated as UTF-16 (Big Endian) text.

Example, find emails, modified this week, containing the text “keyboard”:

*.eml dm:thisweek content:keyboard

  • Note: content: is used last in the search above, this means Everything will only search the content of files that matched the previous search (*.eml dm:thisweek)

  • Note: the content: function requires Everything 1.4 or later.
    Bookmarks

Bookmarks can save the current search, filter, sort and index.

To create a new bookmark from the current search:

In Everything, from the Bookmarks menu, click Add to bookmarks....
Type in a Name.
Click OK.

To organize bookmarks:

In Everything, from the Bookmarks menu, click Organize bookmarks....

Macros

Custom macros can be defined by filters and bookmarks.

To create a custom filter macro:

Create a new filter or edit an existing one.
Type in a macro name, for example:

foo

Click OK.
Click OK.
Searching for foo: will now be replaced by the filter's search.

Regex

Regex overrides the search syntax. Search operators, wildcards, macros, modifiers and functions do not work in regex mode.

Regex must be enabled from the Search menu or prefix the search with

regex:

a|b Matches a or b
gr(a|e)y Matches gray or grey
. Matches any single character
[abc] Matches a single character a, b or c
[^abc] Matches any single character except a, b or c
[a-z] Matches a single charactor in the range a to z
[a-zA-Z] Matches a single charactor in the range a to z or A to Z
^ Matches the start of the filename
$ Matches the end of the filename
* Matches the preceding element zero or more times
? Matches the preceding element zero or one times
+ Matches the preceding element one or more times
{x} Matches the preceding element x times
{x,} Matches the preceding element x or more times
{x,y} Matches the preceding element between x and y times
Examples

Search for ABC and 123:

ABC 123

Search for ABC or 123:

ABC|123

Search for everything except ABC:

!ABC

Search for mp3 files:

*.mp3

Search for mp3 files on the D: or E: drive:

d:|e: *.mp3

Search for jpg or png files on the D: drive:

d: .jpg|.png

Search for files or folders with no extension:

!.

Search for files only:

file:

Search for folders only:

folder:

Limit the search to a single folder:

parent:c:\windows

Find files larger than 1MB:

size:>1mb

Instantly find files that have changed today:

dm:today

  • Requires Everything 1.4

Find files and folders created this week:

dc:thisweek

Find files and folders created from the 1st August 2014 to 31st August 2014:

dc:1/8/2014-31/8/2014

or:

dc:8/1/2014-8/31/2014

Depending on your locale settings.

Find folders in D:\music that do not contain an mp3 file:

d:\music\ !child:mp3

Find filenames with non-ASCII characters:

regex:[^\x00-\x7f]

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值