0 votes

Would like to be able to find and delete all files that have a certain type of prefix. This prefix is 8 characters long and alphanumeric. It is followed by a . then the rest of the file name. These are copies of the original files I want to keep with the only difference being the addition of the additional prefix starter. Please see the following example.


The first file name is the proper one to keep and the other is an example of the one(s) to remove. The 8 characters in the additional part of the prefix are random.

Any suggestions are welcomed.


by (20 points)

1 Answer

0 votes

You could search for all file names with an 8 digit prefix and a .jpg extension using a regular expression like this:

File name: ^\w{8}\..+\.jpg

You can switch to Regular Expression in the Options tab.

by (30.7k points)