Exclude file extensions and search by the end letter of the file name

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
heijingang
Posts: 15
Joined: Thu Sep 14, 2023 12:52 pm

Exclude file extensions and search by the end letter of the file name

Post by heijingang »

afdbdseabc.doc cdseabc.xls ghdseabc.ppt

Exclude file extensions and search by the end letter of the file name abc
NotNull
Posts: 5261
Joined: Wed May 24, 2017 9:22 pm

Re: Exclude file extensions and search by the end letter of the file name

Post by NotNull »

Everything 1.4:

Code: Select all

regex:^.*abc\.[^.]*$

Everything 1.5:

Code: Select all

file:   endwith:stem:abc
therube
Posts: 4610
Joined: Thu Sep 03, 2009 6:48 pm

Re: Exclude file extensions and search by the end letter of the file name

Post by therube »

Just to note some differences with,
suffix:stem:abc
, will find:
abc.def@gmail.com
abc^123

where
endwith:stem:abc
will not.


Is abc^123 an odd one?
(In my thinking, yes.)


Also to point out that suffix:stem:abc works, where stem:suffix:abc does not.
(I tried the latter before the former.)
NotNull
Posts: 5261
Joined: Wed May 24, 2017 9:22 pm

Re: Exclude file extensions and search by the end letter of the file name

Post by NotNull »

suffix: looks at the end of each "word" in the filename, so suffix:abc will match "something 123abc else"
So abc^23 should also be matched.

therube wrote: Tue Oct 31, 2023 4:10 pm lso to point out that suffix:stem:abc works, where stem:suffix:abc does not.
stem: is a search-function
suffix: is a search-modifier.

Typical Everything syntax is search-modifier:search-function:value
(where search-function:value could also be search-function:>value, etc.)
void
Developer
Posts: 15352
Joined: Fri Oct 16, 2009 11:31 pm

Re: Exclude file extensions and search by the end letter of the file name

Post by void »

Another option:

*abc.*

endwith:
suffix:
stem:
NotNull
Posts: 5261
Joined: Wed May 24, 2017 9:22 pm

Re: Exclude file extensions and search by the end letter of the file name

Post by NotNull »

void wrote: Tue Oct 31, 2023 11:22 pm Another option:

*abc.*
Had the same idea,but that will also match "something abc.123.txt" where the stem ends with 123.
heijingang
Posts: 15
Joined: Thu Sep 14, 2023 12:52 pm

Re: Exclude file extensions and search by the end letter of the file name

Post by heijingang »

Thank you NotNull
Post Reply