I renamed tons of picture files by its MD5 check-sum. I know i probably missed some of them.
Is there a way for me to search for any file where its filename does not equal 32 characters.
I know nothing about Regular Expressions, so don't know if something like this can be accomplished by it.
Find files by filename length
Moderators: Hacker, petermad, Stefan2, white
Hi, Lare2. Yes, it can be done using RegEx:
1. Open Find Files
2. Select a proper directory
3. Switch to Plugins tab
4. Select Plugin:tc ; Property:name ; OP:!regex ; Value:^.{32}$
5. Start search
note: to put it simply, '.{32}' means 'a sequence of 32 characters' ; '^' and '$' around it means 'and nothing else'
edit: fixed a typo
1. Open Find Files
2. Select a proper directory
3. Switch to Plugins tab
4. Select Plugin:tc ; Property:name ; OP:!regex ; Value:^.{32}$
5. Start search
note: to put it simply, '.{32}' means 'a sequence of 32 characters' ; '^' and '$' around it means 'and nothing else'
edit: fixed a typo
Last edited by umbra on 2012-05-22, 08:47 UTC, edited 1 time in total.
Windows 10 Pro x64, Windows 11 Pro x64
Re: Find files by filename length
Match between start en end of the file name a string of 1 to 31 characters or a string of 33 or more characters:Lare2 wrote:Is there a way for me to search for any file where its filename does not equal 32 characters.
I know nothing about Regular Expressions, so don't know if something like this can be accomplished by it.
Code: Select all
^(.{1,31}|.{33,})$
^ matches start of the file name
. matches any character
{n,m} repeat n to m times
(n|m) match expression n or expression m
$ matches end of the file name
You mean of course: "OP:!regex"umbra wrote:4. Select Plugin:tc ; Property:name ; OP:regex ; Value:^.{32}$