How can I ignore certain text within filenames?

General discussion related to "Everything".
Post Reply
wavingdragon
Posts: 3
Joined: Sat Oct 04, 2025 11:28 am

How can I ignore certain text within filenames?

Post by wavingdragon »

Let's say I have 10,000 files with the text "apart" in the filename, among a million files. Now I want to search for filenames with the text "part" while ignoring "apart". I don't think I can use the NOT operator as in "!apart" because it would filter out filenames like :
"... apart ... part3 ..."
"... ccpartly ... apartment ..."
And going through all 10,000 files individually would be really undesirable.

So, I would need Everything to ignore (but not exclude) the text "apart". How do I do that?
void
Developer
Posts: 19805
Joined: Fri Oct 16, 2009 11:31 pm

Re: How can I ignore certain text within filenames?

Post by void »

Please try enabling Match Whole Words from the Search menu and searching for
part


-or-

Prefix your word with
ww:

For example:
ww:part


ww: = match whole words.
therube
Posts: 5696
Joined: Thu Sep 03, 2009 6:48 pm

Re: How can I ignore certain text within filenames?

Post by therube »

Thinking you're just going to have to filter.
Filter out what you're not looking for.
Filter in what you are.

ww:part, might work, but that is very specific, & certainly would not return, "ccpartly".

You're going to have to know your data & work from there.
If "apart" only turns up in the word, "apartment", then you can filter that out.

!apartment or !prefix:apartm (or similar)

that would still find, teaparty (which also contains "apart")

Thinking the closest you're going to get, is to simply search for 'part', then add excludes to filter out what you're not after - best you can?
Post Reply