#1 2023-01-13 06:30

mikeincairns
Member
Registered: 2023-01-13
Posts: 5

Need to fix duplicate extensions filename.pdf.pdf

I have a lot of files (not all my files) with duplicate extensions, for example...

<filename>.pdf.pdf

Is there an easy way to detect and fix these?
I think they are all pdf's if that helps at all.

Thankyou
BTW - this is awesome software.

Offline

#2 2023-01-13 08:33

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,440

Re: Need to fix duplicate extensions filename.pdf.pdf

You can do this using the Regular Expressions rule:

Expression: (\.[^.]+)\1+\Z
Replace: $1
Skip extension: NO

This will remove all duplicate file extensions.

I think we can also add a dedicated option for that to the Extension rule in the coming version.

Offline

#3 2023-01-13 09:21

mikeincairns
Member
Registered: 2023-01-13
Posts: 5

Re: Need to fix duplicate extensions filename.pdf.pdf

To everyone at den4b
Thankyou.  You are amazing.

Offline

#4 2023-02-22 17:19

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,440

Re: Need to fix duplicate extensions filename.pdf.pdf

A dedicated option to remove duplicate file extensions was added in ReNamer 7.4.0.4 Beta.

The new option can be found in the Extension rule.

Offline

#5 2023-02-23 06:41

mikeincairns
Member
Registered: 2023-01-13
Posts: 5

Re: Need to fix duplicate extensions filename.pdf.pdf

You guys rock !!

Offline

Board footer

Powered by FluxBB