Searching file name start string with wildcards and occurance at least 3 times

General discussion related to "Everything".
Post Reply
remode
Posts: 1
Joined: Tue Oct 21, 2025 11:14 am

Searching file name start string with wildcards and occurance at least 3 times

Post by remode »

There is personal photo archive in subfolders from different periods, where many photos have been edited and file name second half may be different.
Including many duplicates or version which can be deleted.

Windows File explorer search with file name first 15 letters result is all files starting with this string including also files with different extensions txt, raw, jpg, idx etc.

But is there a function to search all files in subfolders which first 15-20 letters are same at least 3 times?

I assume something like search "any single character" wildcard "?" 15-20 times with additional condition of minimum occurrence at least 3 times.
Expected search result is list of hundreds of files which have been edited and have later comments files. Such omitting single obscure photos.
Final purpose is to select search results and copy these files to new location.
void
Developer
Posts: 19830
Joined: Fri Oct 16, 2009 11:31 pm

Re: Searching file name start string with wildcards and occurance at least 3 times

Post by void »

You'll need Everything 1.5

Try a simple
dupe:stem
search first, see if that gives you the desired results.

dupe:
stem == filename name part without extension.



Otherwise, to find files with the same 15 characters, search for:

regex:(.{15}) dupe:1


regex:(.{15}) == capture the first 15 characters.
dupe:1 == find duplicates with the first capture.



To show results where there is at least 3 duplicates, search for:

regex:(.{15}) dupe:1 dupe-min:3


dupe-min:
Post Reply