Find duplicate file names based on partial name match

Discussion related to "Everything" 1.5 Alpha.
Post Reply
eswul62
Posts: 129
Joined: Wed Jul 31, 2013 6:07 am

Find duplicate file names based on partial name match

Post by eswul62 »

I have many files named like the below:

img-ddmmyyyy hhmmss-text.jpg
img-ddmmyyyy hhmmss.jpg

Example

img-01092016 153336-ps-ac acresults-img-01092016 153336.jpg
img-01092016 153336.jpg
img-01092016 152010-ps-ac acresults-img-01092016 152010.jpg
img-01092016 152010.jpg

etc.

they are in various subfolders (but all in 1 parent folder, N:\Photos)

The first section of the name is the same (the part before the extension)

Any suggestions as to how combine dupe with regex ^img-\d{8}\s\d{6}

I.e. everything to show file names where regex:^img-(\d{8}\s\d{6}) is the same.

Maybe it isn't possible...

Thanks.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Find duplicate file names based on partial name match

Post by NotNull »

... and maybe it is ...

Does the following help?

Code: Select all

N:\Photos   ext:jpg   regex:^(img-\d{8}\s\d{6})  dupe:regmatch1
(untested)
eswul62
Posts: 129
Joined: Wed Jul 31, 2013 6:07 am

Re: Find duplicate file names based on partial name match

Post by eswul62 »

THANK you very much indeed!

using: regex:^img-(\d{8}\s\d{6}) dupe:regmatch0
(Filter: N:\Photos)
dupe:regmatch0 or dupe:regmatch1 - same rsults.

I have to confess: I wasn't aware of something like 'regmatch'

Vainly searched for the Help-file.

Later
I found it under
search.php?keywords=reg-match&t=10176&sf=msgonly

as reg match (with space)

Still do not really know how it works though :-)

Anyway, thanks again.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Find duplicate file names based on partial name match

Post by NotNull »

regmatch1 is short for regular-expression-match-1

Roughly speaking, it equals to whatever the regex pattern between the first () pair expands to.
Add an extra column "Regular Expression MAtch 1" to the result list to see what exactly:

- Right-click the result list header
- Select Search (scroll down for that)
- Select Regular Expression Match 1
Post Reply