Advanced Rename Formula case

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
sk2107
Posts: 324
Joined: Sun Aug 07, 2022 8:48 pm

Advanced Rename Formula case

Post by sk2107 »

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
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Advanced Rename Formula case

Post by NotNull »

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
sk2107
Posts: 324
Joined: Sun Aug 07, 2022 8:48 pm

Re: Advanced Rename Formula case

Post by sk2107 »

Thank you. that was helpful

Best Regards
Post Reply