Search for File names in all capital letters/upper case
Moderators: Hacker, petermad, Stefan2, white
Search for File names in all capital letters/upper case
Any ideas how to search for file names that are in all caps? Any help appreciated.
License #1945
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
Using (?-i)^[A-Z]+$ in a subfolder off of the root with files and multiple subfolders, a few all cap folders and files were found but many were missed.
TC 8.52a 64 bit on Win7 Enterprise SP1
TC 8.52a 64 bit on Win7 Enterprise SP1
License #1945
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
jinsight,
Maybe they contained numbers and other characters in addition to all caps?
Adjust [A-Z] as appropriate, eg.:
Roman
Maybe they contained numbers and other characters in addition to all caps?
Adjust [A-Z] as appropriate, eg.:
Code: Select all
[A-Z0-9!@#$%^&()]
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
To ignore the extension and only discard non caps:
Edit: Include files with no extension
Code: Select all
(?-i)^[^a-z]+\.*[^.]*$
Last edited by ZoSTeR on 2016-03-28, 20:40 UTC, edited 2 times in total.
This would work, and I think it's easier to read, due to the "0 or 1" quantifier:ZoSTeR wrote:(?-i)^[^a-z]+\.*[^.]*$
Hmm... but how to exclude "ABCdef" with no extension?
Code: Select all
(?-i)^[^a-z]+(\..+)?$
In case you didn't know:
For a quick test, w/o using the search (Alt+F7), just use the "Mark files" dialog (Numpad+)
and prefix "<"
e.g.
Code: Select all
<(?-i)^[^a-z]+(\..+)?$
TC plugins: PCREsearch and RegXtract
This fits all my test cases:
For:
Code: Select all
(?-i)^[^a-z]+(\.[^\.]+)?$
Code: Select all
abc.txt
abc.xyz.txt
abc123.txt
aBCD
BCD
BCD.txt
BCD.aYZ.txt
BCD.XYZ.txt
BCD123
BCD123.txt
BCDabc
I see, the only difference to my expression is that it doesn't matchZoSTeR wrote:This fits all my test cases:Code: Select all
(?-i)^[^a-z]+(\.[^\.]+)?$
BCD.aYZ.txt
Anyway, there are still cases when an all-digit file name is matched, e.g.:
123.txt
so we should stipulate at least one upper case letter:
Code: Select all
(?-i)^([^a-z]*[A-Z][^a-z]*)+(\.[^\.]+)?$
TC plugins: PCREsearch and RegXtract
All posters,
Thanks for all the effort everyone put in to find a useful answer.
I had searched the web but found nothing close.
(?-i)^([^a-z]*[A-Z][^a-z]*)+(\.[^\.]+)?$ worked the best for me.
It saved a lot of time finding old all caps file names.
Much appreciation to all.
Thanks for all the effort everyone put in to find a useful answer.
I had searched the web but found nothing close.
(?-i)^([^a-z]*[A-Z][^a-z]*)+(\.[^\.]+)?$ worked the best for me.
It saved a lot of time finding old all caps file names.
Much appreciation to all.
License #1945
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64