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?
[Solved] Search for files with "double extension"
[Solved] Search for files with "double extension"
Last edited by w64bit on Sat Sep 30, 2023 9:53 am, edited 1 time in total.
Re: Search for files with "double extension"
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
Re: Search for files with "double extension"
same extension please
like *.docx.docx
like *.docx.docx
Re: Search for files with "double extension"
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?
Are you sure the "dot" is a "dot" & not something that looks like a dot?
Does, Search | Match Diacritics, make a difference?
Re: Search for files with "double extension"
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.
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.
Re: Search for files with "double extension"
Thank you very much to you all.