Wildcard in Folder names only

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
InfoR3aper
Posts: 38
Joined: Sun Jul 11, 2021 3:44 am

Wildcard in Folder names only

Post by InfoR3aper »

I have been trying to find all folders (ONLY) that contain words like this

.s01. or s01301.

so I was hoping for a solution like this

.s0#. to find all folders with .s01. s02. etc

then

.s0#e##. meaning .so1e01. .s20e21. etc

Tried with the various wildcard(S) etc to no avail

Am I missing something or is it that you can only use wildcards for filenames?


Also is there a way when searching folders only I could tell it to only show the last sub folder containing a word?

Mean let's say you have a folder where the sub folder is nested like this

FolderA/Folder101/Folder101/Folder101/

So when the search is done it would only show the LAST sub folder instead of all 3 in the results?

Any help would be greatly appreciated.
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Wildcard in Folder names only

Post by void »

Please try the following searches:

*.s0?.*
*.s0?e??.*

Everything will match the whole filename when using a wildcard.
Use a * prefix and suffix to match anywhere in the filename.
This can be disabled from Tools -> Options -> Search -> Match whole filename when using wildcards.

? will match any single character. (not just digits)



For more control, please try regex:
regex:\.s0\d\.
regex:\.s0\d\.e\d\d\.

regex: = enable regular expressions.
\. = match a literal .
\d = match a digit (0-9)
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Wildcard in Folder names only

Post by void »

Also is there a way when searching folders only I could tell it to only show the last sub folder containing a word?
To search folders only, include the following in your search:

folder:


So when the search is done it would only show the LAST sub folder instead of all 3 in the results?
Tricky to do with Everything 1.4

Please try the following search:
"c:\FolderA\Folder101\Folder101\Folder101\"

and without subfolders:
parent:"c:\FolderA\Folder101\Folder101\Folder101"

To match the parent name, please try the following search:

*folder101*\* !*folder101*\*\*



Everything 1.5 will support the following: parentname:Folder101
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Wildcard in Folder names only

Post by NotNull »

Àlso in Everything 1.5 (not available in 1.4):

Code: Select all

wildcards:s##e##
Wildcards

void wrote: Wed Apr 19, 2023 1:14 am FolderA/Folder101/Folder101/Folder101/
I would start by cleaning this up first to make your life easier in the future.

This will list these folders with 3 levels deep the same name:

Code: Select all

folder: regex:^.*(\\[^\\]*)\1\1
InfoR3aper
Posts: 38
Joined: Sun Jul 11, 2021 3:44 am

Re: Wildcard in Folder names only

Post by InfoR3aper »

I think there is little confusion.

What I posted was an example. But literally with some data "sources" I am dealing with I come across nested folders like above with varying degrees of folder name depth replication.

So in the example of this:
FolderA/Folder101/Folder101/Folder101/

Folder101 is replicated 3 times before you actually see the Info.

My issue is that I do not KNOW where the end occurs.

In one instance I found that as exampleFolder101 was replicated over 100 times before you got to the actual data.

But in reality I have tens of thousands (if not hundreds of thousands) of parent directories where the sub directory Name can be nested anywhere from 1 to several hundred times.

So what I was really trying to figure out is a way to find the very LAST nested directory without having to specify the level since I do not know how many levels there are unless I navigate to it manually.

I realize "maybe" there is no easy solution, but thought it was worth asking since it is Major PITA (pain in the @SS) to deal with!
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Wildcard in Folder names only

Post by void »

Sorry, I don't have a good solution for Everything 1.4.

Maybe the following search in Everything 1.5 might help:

folder: Folder101 !descendantfolder:Folder101

This will list the deepest Folder101 folders.
Post Reply