Delete names with digits only

The best solution for finding and removing duplicate files.
Post Reply
webmys
Posts: 2
Joined: Mon Sep 02, 2019 4:16 am

Delete names with digits only

Post by webmys »

When pictures are taken they are given a numeric string. When I have edited them, I save them using words. Is there any way to delete only duplicates that have names that consist only of numbers?
User avatar
DigitalVolcano
Site Admin
Posts: 1717
Joined: Thu Jun 09, 2011 10:04 am

Re: Delete names with digits only

Post by DigitalVolcano »

In your duplicate list you can mark files with numbers in their name using the Selection Assistant - Mark by Text Pattern tool:

-Column Name: File Name
-Text: [0-9]
-"Use Regular Expressions" checkmarked
webmys
Posts: 2
Joined: Mon Sep 02, 2019 4:16 am

Re: Delete names with digits only

Post by webmys »

It looks like that will delete any names that have any digits in them. I'm trying to mark only those that have NO letters in them; just numbers. Is there a way to do that? Thanks.
User avatar
DigitalVolcano
Site Admin
Posts: 1717
Joined: Thu Jun 09, 2011 10:04 am

Re: Delete names with digits only

Post by DigitalVolcano »

For all numbers you'll want something like-

Code: Select all

^[0-9]*\.jpg
depending on the file format
Post Reply