Understanding syntax of \*\*

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Posts: 79
Joined: Fri Oct 16, 2009 9:50 am

Understanding syntax of \*\*

Post by burgundy » Tue Jan 22, 2019 8:46 pm

If I want to search only a folder (such as the root c:\) and not include any subfolders, then I use this command:

Code: Select all

c:\ !c:\*\*
Can someone explain the syntax of this part: \*\*

It looks a bit like some form of regex but can't be because regex is not enabled.

Site Admin
Posts: 4605
Joined: Fri Oct 16, 2009 11:31 pm

Re: Understanding syntax of \*\*

Post by void » Wed Jan 23, 2019 12:38 am

\*\* basically means match another \ any where after the first \

The * is a wildcard.

* will match any character any number of times

! is the Everything NOT operator.

We also need to add the trailing * because Everything matches the entire filename when using wildcards.

Putting it altogether, !c:\*\* will match anything that does not have a second \ in the full path.

You may also like to try the following parent: search function:

This will only show results that are in the root of your C: drive.

Post Reply