Hi,
I received a punch of files which have something like this:
dasdasd.mp4.abc
dawdasdasdas.jpg.xyz
fsdffrerewrew .mp3.erert
.
.
.
I need and Advanced Rename Formula to rename the filename by putting the first extension to the end of the file name:
dasdasd.mp4.abc ----> dasdasd.mp4.abc.mp4
dawdasdasdas.jpg.xyz ----> dawdasdasdas.jpg.xyz.jpg
fsdffrerewrew .mp3.erert ----> fsdffrerewrew .mp3.erert.mp3
.
.
.
I have other cases but an example could help me understand how to do it.
Thank you in advance
Regards
Advanced Rename Formula case
Re: Advanced Rename Formula case
When you are certain your filenames contain just 2 extensions ( total name contains exactly 2 dots ) you could use the following:
- Disable Regular Expressions
- Old Format = %1.%2.%3
- New Format = %1.%2.%3.%2
When more than 2 dots (names like Everything 1.2.3.4.exe.abc):
- Enable Regular Expressions
- Old Format = ^(.*)\.(.+?)\.(.+?)$
- New Format = \1.\2.\3.\2
(will work on filenames with 2 dots too)
Regular Expressions
- Disable Regular Expressions
- Old Format = %1.%2.%3
- New Format = %1.%2.%3.%2
When more than 2 dots (names like Everything 1.2.3.4.exe.abc):
- Enable Regular Expressions
- Old Format = ^(.*)\.(.+?)\.(.+?)$
- New Format = \1.\2.\3.\2
(will work on filenames with 2 dots too)
Regular Expressions
Re: Advanced Rename Formula case
Thank you. that was helpful
Best Regards
Best Regards