[Solved] Search for files with "double extension"

Discussion related to "Everything" 1.5 Alpha.
Post Reply
w64bit
Posts: 244
Joined: Wed Jan 09, 2013 9:06 am

[Solved] Search for files with "double extension"

Post by w64bit »

I want to check if I have files with "double extension", like:
*.docx.docx
*.pdf.pdf
...
but I need to check all file types.
Maybe with regex?
Can anyone please help?
Last edited by w64bit on Sat Sep 30, 2023 9:53 am, edited 1 time in total.
therube
Posts: 4684
Joined: Thu Sep 03, 2009 6:48 pm

Re: Search for files with "double extension"

Post by therube »

regex:\..*\..*$

dot (.) followed by anything, followed by, a dot (.) followed by anything

If (match) PATH is enabled, nopath:regex:\..*\..*$

Code: Select all

setupapi.app.log
data.safe.bin
JCS.2.NAS_DB_BU.ffs_batch
store.json.mozlz4
sha1.vs.path2
230912.1142.33.txt~
Everything-15.backup.db
230908.1409.27.txt
IS.BUGGY.AS.ALL.CAN.BE.TXT
librewolf.exe.18172.dmp
w64bit
Posts: 244
Joined: Wed Jan 09, 2013 9:06 am

Re: Search for files with "double extension"

Post by w64bit »

same extension please
like *.docx.docx
therube
Posts: 4684
Joined: Thu Sep 03, 2009 6:48 pm

Re: Search for files with "double extension"

Post by therube »

No reason that should not be found (that I can think of).

Are you sure the "dot" is a "dot" & not something that looks like a dot?
Does, Search | Match Diacritics, make a difference?
void
Developer
Posts: 15675
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search for files with "double extension"

Post by void »

Please try the following for the same extension:

regex:\.([^\.]*)\.\1$

\. = match a literal .
( ) = capture group.
[^\.] = not a literal .
* = zero or more of the previous element.
\1 = match captured group.
$ = match end of filename.
w64bit
Posts: 244
Joined: Wed Jan 09, 2013 9:06 am

Re: Search for files with "double extension"

Post by w64bit »

Thank you very much to you all.
Post Reply