How to find folders with a certain word and not a connected part

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Thy Grand Voidinesss
Posts: 824
Joined: Wed Jun 01, 2022 5:01 pm

How to find folders with a certain word and not a connected part

Post by Thy Grand Voidinesss »

I need to single out all folders than have just

info


anywhere in them as a word i.e. disregard all that have e.g.

information


or

install-info


nor

959492.info.52348527



How can I do this?
Last edited by Thy Grand Voidinesss on Tue Aug 19, 2025 6:03 pm, edited 1 time in total.
void
Developer
Posts: 19568
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to find folders with a certain word and not a connected part

Post by void »

ww:info

ww: = whole words



-or-



Enable Match Whole Words from the Search menu and search for:

info



-or-



regex:\binfo\b

regex: = enable regular expressions

\b = word boundary
Thy Grand Voidinesss
Posts: 824
Joined: Wed Jun 01, 2022 5:01 pm

Re: How to find folders with a certain word and not a connected part

Post by Thy Grand Voidinesss »

Neither of these methods seem to work, because I am still being shown for example folders

Code: Select all

addon@ytdownloader.info
https+++www.youtube.com^partitionkey=%28https%2cskladchik.info%29
Sound Blaster X4 INFO_files
void
Developer
Posts: 19568
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to find folders with a certain word and not a connected part

Post by void »

space breaks only? -no punctuation?

Please try the following:

folder:regex:"(\s|^)info(\s|$)"

folder: = folders only.
\s = space.
| = OR.
^ = start of filename.
$ = end of filename.
Thy Grand Voidinesss
Posts: 824
Joined: Wed Jun 01, 2022 5:01 pm

Re: How to find folders with a certain word and not a connected part

Post by Thy Grand Voidinesss »

void wrote: Sun Jan 28, 2024 12:11 pm [...]
folder:regex:"(\s|^)info(\s|$)"
[...]
This seems to work i.e. those three folders are no longer shown to me


And thus such question arises: how is Match Whole Words intended to work, both through

Main Menu > Search > Match Whole Words

and CTRL+F shortcut? Is it not working how it should just for me [and I need to change some setting] or did I just gave you examples that need to be accounted for [i.e. a program update is needed]?
Last edited by Thy Grand Voidinesss on Tue Aug 19, 2025 6:05 pm, edited 3 times in total.
void
Developer
Posts: 19568
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to find folders with a certain word and not a connected part

Post by void »

The standard is to treat spaces and punctuation as word breaks.

Everything treats spaces and punctuation as word breaks.
The only non-standard character Everything treats as a word break is an underscore: _



Everything will treat info in the following as a word:

959492.info.52348527

The dots (.) are punctuation.
info is surrounded by punctuation so it is treated as a word.



Use regex if you need more control for word matching.



Main Menu > Search > Match Whole Words
and
Ctrl + F > Match Whole Words
will work the same way. (treat spaces and punctuation as word breaks)
Thy Grand Voidinesss
Posts: 824
Joined: Wed Jun 01, 2022 5:01 pm

Re: How to find folders with a certain word and not a connected part

Post by Thy Grand Voidinesss »

Maybe my train of thought is wrong here, but as there already exists option

Main Menu > Search > Ignore Punctuation

then a user might think, that only after selecting it the option

Main Menu > Search > Match Whole Words

would result with e.g.

Code: Select all

959492.info.52348527
being found when plain

Code: Select all

info
is entered in the Search Edit box. But if this is the standard approach [to treat not only spaces but also punctuation signs as word breaks] then I would suggest adding of a new option named something like

Main Menu > Search > Match Whole Words Without Any Additions

which would eliminate from results all cases when the searched for word has any sign adjacent to it, including the

Code: Select all

_
sign - but with exception of all kinds of white spaces. But then again: if such option will be entitled Without Any then it would imply also lack of spaces- thus some other / better description would be needed for what I am proposing

And then there is of course the issue of the "real" dot that is separating filenames from their extensions
Last edited by Thy Grand Voidinesss on Tue Aug 19, 2025 6:07 pm, edited 3 times in total.
Thy Grand Voidinesss
Posts: 824
Joined: Wed Jun 01, 2022 5:01 pm

Re: How to find folders with a certain word and not a connected part

Post by Thy Grand Voidinesss »

Do you void have any thoughts about that last input from me?
void
Developer
Posts: 19568
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to find folders with a certain word and not a connected part

Post by void »

Everything treats spaces and punctuation as word breaks.

I will consider an option to match words with space breaks only.
Thank you for the suggestion.



For now, use regex: for more control, for example:

folder:regex:stem:"(\s|^)info(\s|$)"

Use stem: to match the name without the extension.



Consider adding the following filter from Search -> Add to filters:
Name: Match Whole Words Without Any Additions
Search: #[REPLACETERMS:$param:,"regex:stem:(\s|^)#[REGEXESCAPE:#TERM:#]:(\s|$)"#]:
Thy Grand Voidinesss
Posts: 824
Joined: Wed Jun 01, 2022 5:01 pm

Re: How to find folders with a certain word and not a connected part

Post by Thy Grand Voidinesss »

void wrote: Tue Apr 23, 2024 11:32 pm Everything treats spaces and punctuation as word breaks.

I will consider an option to match words with space breaks only.
I sure wil be looking forward to it. Because this
void wrote: Tue Apr 23, 2024 11:32 pm Consider adding the following filter from Search -> Add to filters:
Name: Match Whole Words Without Any Additions
Search: #[REPLACETERMS:$param:,"regex:stem:(\s|^)#[REGEXESCAPE:#TERM:#]:(\s|$)"#]:
does work - but is yet another Filter workaround that I will have to remember that I have and for what reason exactly / remember to use it when once more I will discover that the Search options do "not" work. And of course it is impossible to use this Filter with some other Filter at the same time - to which a workaround would be of course to transform it to a Bookmark. But then again: this would be extending the amount of additional workarounds; plus a Bookmark is less convenient than a Filter, because it clutters Search Edit when picked
Thy Grand Voidinesss
Posts: 824
Joined: Wed Jun 01, 2022 5:01 pm

Re: How to find folders with a certain word and not a connected part

Post by Thy Grand Voidinesss »

All in all:

is there a way today, in Everything 1.5.0.1396a x64 Portable, after writing in the Search Edit only

Code: Select all

info
to see only items that are named just

Code: Select all

info
or have in their name

Code: Select all

 info 
[i.e. the looked for name but with a leading and trailing space sign]?

And at the same time to not see e.g.

Code: Select all

information
install-info
959492.info.52348527
addon@ytdownloader.info
https+++www.youtube.com^partitionkey=%28https%2cskladchik.info%29
Sound Blaster X4 INFO_files
files or folders in the list with result?

A Filter with such Search expression

Code: Select all

#[REPLACETERMS:$param:,"regex:stem:(\s|^)#[REGEXESCAPE:#TERM:#]:(\s|$)"#]:
shows absolutely nothing i.e. the list of items disappears instantly when it is chosen from the list of Filters
Last edited by Thy Grand Voidinesss on Thu Aug 21, 2025 8:44 am, edited 1 time in total.
Massor
Posts: 26
Joined: Sat Sep 03, 2022 3:27 pm

Re: How to find folders with a certain word and not a connected part

Post by Massor »

Maybe something like <wfn:info.*>
..or something like <ww:info> ?
Thy Grand Voidinesss
Posts: 824
Joined: Wed Jun 01, 2022 5:01 pm

Re: How to find folders with a certain word and not a connected part

Post by Thy Grand Voidinesss »

Massor wrote: Wed Aug 20, 2025 8:34 pm Maybe something like <wfn:info.*>
..or something like <ww:info> ?
They do not work: the first one shows nothing, while the second still shows those unwanted cases with the word info having adjacent signs
void
Developer
Posts: 19568
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to find folders with a certain word and not a connected part

Post by void »

Please try the following filter search:

Code: Select all

#[REPLACETERMS:#param:#,:regex:stem:(\s|^)#[[:#[REGEXESCAPE:#TERM:#]:#]]:(\s|$)#]:
hamid56
Posts: 39
Joined: Sun Jul 20, 2014 9:38 am

Re: How to find folders with a certain word and not a connected part

Post by hamid56 »

Hi every one
most simplest answer is exact:info
best regards
NotNull
Posts: 5948
Joined: Wed May 24, 2017 9:22 pm

Re: How to find folders with a certain word and not a connected part

Post by NotNull »

To find all files/folders containing the word info between spaces:

Code: Select all

startwith:"info " | endwith:" info" | " info "
(Note the added spaces before and/or after the word info)
Thy Grand Voidinesss
Posts: 824
Joined: Wed Jun 01, 2022 5:01 pm

Re: How to find folders with a certain word and not a connected part

Post by Thy Grand Voidinesss »

void wrote: Fri Oct 31, 2025 8:47 am Please try the following filter search:

Code: Select all

#[REPLACETERMS:#param:#,:regex:stem:(\s|^)#[[:#[REGEXESCAPE:#TERM:#]:#]]:(\s|$)#]:
Using

Code: Select all

#[REPLACETERMS:#param:#,:regex:stem:(\s|^)#[[:#[REGEXESCAPE:#TERM:#]:#]]:(\s|$)#]:info
does not narrow down searches; at least not in any significant way that I am able to spot


hamid56 wrote: Fri Oct 31, 2025 2:16 pm Hi every one
most simplest answer is exact:info
best regards
Yes, the simplistic

Code: Select all

exact:info
seems to work (no pun intended) exactly like it promises to do. And it can be easily expanded / narrowed to

Code: Select all

exact:" info"
but unfortunately taking this one step further by adding a trailing space

Code: Select all

exact:" info "
does not seem to work, i.e. this last one fails at finding precisely only

Code: Select all

 info 
(i.e. >> info <<) just like the

Code: Select all

exact:"info "
version which also fails at finding it


And so it seems that (currently in Everything 1.5.0.1400a x64 Portable)
NotNull wrote: Fri Oct 31, 2025 3:50 pm To find all files/folders containing the word info between spaces:

Code: Select all

startwith:"info " | endwith:" info" | " info "
(Note the added spaces before and/or after the word info)
is needed, But that method is extremely inconvenient, because it requires writing down 3 times of 1 word that is to be found; and is pron to error when doing, because it is quite easy to accidentally miss a space sign in any of its 3 iteration


So the big question to void would be: is

Code: Select all

exact:"info "
not being able to find

Code: Select all

info 
(i.e. >>info <<) an intentional design or is it a bug?
void
Developer
Posts: 19568
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to find folders with a certain word and not a connected part

Post by void »

Using

#[REPLACETERMS:#param:#,:regex:stem:(\s|^)#[[:#[REGEXESCAPE:#TERM:#]:#]]:(\s|$)#]:info

does not narrow down searches; at least not in any significant way that I am able to spot
Thank you for bringing this issue to my attention.
Sorry, I broke REPLACETERMS in 1403.

Everything 1.5.0.1404a fixes a parse issue with REPLACETERMS, ELEMENT and ELEMENTCOUNT.

Please try Everything 1.5.0.1404a with your filter.



or, use a regex search:

regex:(\s|^)info(\s|$)



(i.e. >> info <<) just like the

exact:"info "

version which also fails at finding it
Please note exact: matches the whole filename.
How did you rename the folder to have a space at the end? Windows Explorer doesn't allow a trailing space.
Please ensure the folder has a trailing space.
You can add a trailing space with Everything using Shift + F2.
Thy Grand Voidinesss
Posts: 824
Joined: Wed Jun 01, 2022 5:01 pm

Re: How to find folders with a certain word and not a connected part

Post by Thy Grand Voidinesss »

In version Everything 1.5.0.1404a x64 Portable this expression

Code: Select all

#[REPLACETERMS:#param:#,:regex:stem:(\s|^)#[[:#[REGEXESCAPE:#TERM:#]:#]]:(\s|$)#]:info
has the same effect as using just

Code: Select all

info
But the

Code: Select all

regex:(\s|^)info(\s|$)
seems to do the trick


Thy Grand Voidinesss wrote: Sun Dec 21, 2025 9:25 am [...]
So the big question to void would be: is

Code: Select all

exact:"info "
not being able to find

Code: Select all

info 
(i.e. >>info <<) an intentional design or is it a bug?
void wrote: Mon Dec 22, 2025 2:42 am Please note exact: matches the whole filename.
So now it makes sense to me: because whole name of a file is name + extension. Thus also indeed it is also impossible for a
void wrote: Mon Dec 22, 2025 2:42 am [...]
folder to have a space at the end
[...]
And so logically

Code: Select all

[code]exact:"info "
is unable to do this trick and regular expression must be used



But if
void wrote: Mon Dec 22, 2025 2:42 am Windows Explorer doesn't allow a trailing space.
[...]
then how
void wrote: Mon Dec 22, 2025 2:42 am [...]
You can add a trailing space with Everything using Shift + F2.
then? In my Everything this shortcut just toggles selection in some way when I activate a name of an item for edition of its name



All in all that regular expression

Code: Select all

regex:(\s|^)info(\s|$)
works - but is quite inconvenient, cause it has that what is searched for in its middle, thus is prone to accidental deletion if character of the syntax itself. But it seems that it can be made slightly like this

Code: Select all

regex:(\s|^)"in fo"(\s|$)
Because by adding quotes sign not only does it gain better readability, but it also allows for searching of strings containing spaces, because this

Code: Select all

regex:(\s|^)in fo(\s|$)
finds nothing as apparently the added in the middle for test purposes space breaks it. Unfortunately the quote signs seem to do the trick only if spaces are in it the middle, because e.g.

Code: Select all

regex:(\s|^)"in fo "(\s|$)
will not find

Code: Select all

###in fo ###
Last edited by Thy Grand Voidinesss on Mon Dec 22, 2025 11:41 am, edited 1 time in total.
void
Developer
Posts: 19568
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to find folders with a certain word and not a connected part

Post by void »

Please try a "spaced word" filter:
In Everything, from the Search menu, click Add to filters....
Change the Name to:
Spaced Word

Change the Search to:
#[REPLACETERMS:#param:#,:regex:stem:(\s|^)#[[:#[REGEXESCAPE:#TERM:#]:#]]:(\s|$)#]:

Change the Macro to:
sw

Click OK.

Now try searching for:
sw:info


which is internally replaced with
regex:(\s|^)info(\s|$)



In my Everything this shortcut just toggles selection in some way when I activate a name of an item for edition of its name
Instead of Shift + F2, please try Edit -> Advanced -> Advanced Rename.


regex:(\s|^)in fo(\s|$)
space = AND in Everything.
Escape spaces with double quotes.


will not find

###in fo ###
You will have to decide which punctuation you allow and which you don't.
Add them to your regex pattern:
regex:(\s|^|#)info(\s|$|#)




ww:info
will find info where it is a whole word.

Word characters in Everything are: A-Za-z0-9
(I'm only listing ASCII characters here)
All other ASCII characters are punctuation or space. (including _ )
Post Reply