Exclude Files with No Extension?

Discussion related to "Everything" 1.5.
TheSQLG0d
Posts: 7
Joined: Fri Oct 27, 2023 6:45 pm

Exclude Files with No Extension?

Post by TheSQLG0d »

I have 60K files on my C drive with no extension. I wish to exclude all such files from Everything.

I searched forum for this, but found nothing helpful.

I have tried *.dll;*. and *.dll;*."" and neither excluded files with no extension.

Is there a way to accomplish this?

Version 1.5.0.1416b (x64), win 10 22H2
NotNull
Posts: 5988
Joined: Wed May 24, 2017 9:22 pm

Re: Exclude Files with No Extension?

Post by NotNull »

I'm assuming you want to permanently exclude those files under Menu > Tools > Options > Indexes > Exclude?
Then try the following:

Include only files =
*.*

Exclude files =
*.dll



In the search bar, files without extension can be excluded by adding
!ext:
to the search query
void
Developer
Posts: 20194
Joined: Fri Oct 16, 2009 11:31 pm

Re: Exclude Files with No Extension?

Post by void »

To exclude dll files and files with no extension, please try the following exclude filter:

*.dll;regex:^[^.]*$
hamid56
Posts: 44
Joined: Sun Jul 20, 2014 9:38 am

Re: Exclude Files with No Extension?

Post by hamid56 »

in completing David guidance we have 3 another method for excluding no-ext files:i appreciate any person that mention another reasonable method(without adding * or " to current commands).
file:!.
ext:
file: !regex:\.
file: regex:^[^.]*$
TheSQLG0d
Posts: 7
Joined: Fri Oct 27, 2023 6:45 pm

Re: Exclude Files with No Extension?

Post by TheSQLG0d »

It seems that this was a good thing to inquire about. Thank you for the inputs!

I added regex:^[^.]*$ to my existing list of extentions to exclude, and it immediately removed all of the files I had showing in a search that included files with and without extensions.



SUGGESTION: Please include these options as an entry in the FAQ and/or documentation. It would seem to be something others would want, and the solution is not obvious (to those without good regex knowledge anyway).