11 Vote

How to switch Part of File Name (A-B to B-A)?

Question by Mail Request | 2024-09-19 at 21:07

First of all I would like to thank you for your wonderful program, congratulations.

I have used the FileRenamer several times but now I have a doubt because I want to change the order of a part of the file name. For example, given the name "Julio Iglesias - Olvídame.mp3" I am trying to get "Olvídame - Julio Iglesias.mp3".

Despite my efforts, I am not able to determine the operation I should configure to get the desired result. I have a lot of .mp3 files and the solution would be very helpful for my music collections.

An added problem is that when playing .mp3 files they are always sorted in alphabetical order and are always played in the same order of performers and with the change I propose the name of the song would appear first....

I would be very grateful for a solution to this issue. Thank you in advance and again congratulations for your program.

ReplyPositiveNegative
1Best Answer1 Vote

Thank you very much. You can just use the Search and Replace function of the FileRenamer that you can find under "Changes > Name > Search and Replace" to perform that task.

In the options of that action, you can use the following configuration:

Search for: (.*) - (.*)
Replace With: $2 - $1
Options: Interpret as Regular Expression

This searches for two name parts divided with " -  " and replaces them in a switched order. To make it work, don't forget to activate the option "Interpret as Regular Expression".

If you want to learn more about how that works, here you can find an introduction to regular expressions.
2024-09-19 at 21:15

ReplyPositive Negative
Reply

Related Topics

Rename File to its Folder Name

Tutorial | 0 Comments

PHP: File Download Script

Tutorial | 0 Comments

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.

Participate

Ask your own question or write your own article on askingbox.com. That’s how it’s done.