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.
Find duplicate file names based on partial name match
Re: Find duplicate file names based on partial name match
... and maybe it is ...
Does the following help?
(untested)
Does the following help?
Code: Select all
N:\Photos ext:jpg regex:^(img-\d{8}\s\d{6}) dupe:regmatch1
Re: Find duplicate file names based on partial name match
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.
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.
Re: Find duplicate file names based on partial name match
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
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