Exclude file extension from getting matched?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
David.P
Posts: 200
Joined: Fri May 29, 2020 3:22 pm

Exclude file extension from getting matched?

Post by David.P »

Hello Forum,

This is probably a simple question, but I didn't find an answer in the forum when I searched for it:

I'd like to search for all images that have "pg" in the file name, regardless of the extension.

With standard search and advanced search, Everything finds all JPG files, because the file extension is included in the search. Hence, how can I exclude the file extension from the search?
horst.epp
Posts: 1445
Joined: Fri Apr 04, 2014 3:24 pm

Re: Exclude file extension from getting matched?

Post by horst.epp »

For example
!ext:jpg pg
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Exclude file extension from getting matched?

Post by NotNull »

.. or
stem:pg


stem:
(not available in Evertything 1.4)
David.P
Posts: 200
Joined: Fri May 29, 2020 3:22 pm

Re: Exclude file extension from getting matched?

Post by David.P »

Thank you gentlemen.
Can I search for
stem
and only whole words at the same time?
In any case, this works:
ww:pg !ext:jpg

Oops, but doesn't find
ImagePG123.jpg
, or does it?
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: Exclude file extension from getting matched?

Post by therube »

stem:pg pic:

find "pg" in the name-part, where the extension-part is of a (defined as a) pic: (picture) filetype.
David.P
Posts: 200
Joined: Fri May 29, 2020 3:22 pm

Re: Exclude file extension from getting matched?

Post by David.P »

Okay! What about whole words and upper/lower case? For example, if I'd like to find only
PG
in uppercase and as a whole word?
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Exclude file extension from getting matched?

Post by NotNull »

Use the whole-word: searchh-modifier or one of its aliases

ww:stem:pg


whole-word:



EDIT: missed the uppercase part.

case:ww:stem:PG
David.P
Posts: 200
Joined: Fri May 29, 2020 3:22 pm

Re: Exclude file extension from getting matched?

Post by David.P »

Whoa awesome, thanks
Post Reply