Is there a way to search for files that are/aren't "Title Case" (Capital Letter At Start Of Every Word)

General discussion related to "Everything".
Post Reply
Geoff741
Posts: 8
Joined: Mon Jul 02, 2018 5:57 am

Is there a way to search for files that are/aren't "Title Case" (Capital Letter At Start Of Every Word)

Post by Geoff741 »

I'm wanting to find files that have lower case words so that I can fix it, but I don't know if that's possible.

Example "The Man from Yesterday" Is sentence case (and what google/wikipedia etc uses), but title case it would be "The Man From Yesterday" is what I want to name things. So I wanna find the files I've missed
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Is there a way to search for files that are/aren't "Title Case" (Capital Letter At Start Of Every Word)

Post by void »

Please try the following search:

case:regex:\b[a-z].*\.[^\.]*$

case: = match case
regex: = match a regular expression
\b = match a word boundary (start of filename or start of word)
[a-z] = match a single character (a-z)
.* = match any character any number of times.
\. = match a single literal .
[^\.]* = match any character (except .) any number of times.
$ = match the end of the filename

Note: this search ignores extensions.


If you are looking for folders too, please try the following:

folder:case:regex:\b[a-z]



To rename multiple files to titlecase:
  • Select multiple files in Everything 1.5.
  • Press F2.
  • Check Regular expressions.
  • Change the Old format to: ^(.*)\.([^.]*)$
  • Change the New format: <titlecase:\1>.\2
  • Review the new filenames and click OK.
Phlashman
Posts: 41
Joined: Sun Sep 11, 2022 4:57 am

Re: Is there a way to search for files that are/aren't "Title Case" (Capital Letter At Start Of Every Word)

Post by Phlashman »

Try regex:(?-i)(?<![-.])\b[a-z]+

I'm note a regex expert in any way but got this to look like it works?

\b[a-z]+ looks for word boundary including beginning of sentence followed by at least 1 lowercase character
(?-i) makes the expression case sensitive
(?<![-.]) excludes hyphens and stop character which then excludes the file extension in result
Phlashman
Posts: 41
Joined: Sun Sep 11, 2022 4:57 am

Re: Is there a way to search for files that are/aren't "Title Case" (Capital Letter At Start Of Every Word)

Post by Phlashman »

a more simple one?

regex:(?-i)^[a-z]|[\ ]+[a-z]

(?-i) case sensitive
^[a-z] start of filename a lowercase character
| "or" operator
[\ ]+[a-z] one or more space characters followed by lowercase character
Geoff741
Posts: 8
Joined: Mon Jul 02, 2018 5:57 am

Re: Is there a way to search for files that are/aren't "Title Case" (Capital Letter At Start Of Every Word)

Post by Geoff741 »

Thank you heaps, works great. It did come back a lot of "I've and 's words but they're trivial to filter out. Massive help.
Post Reply