Page 1 of 1

How i switch the words before and after the - hyphen?

PostPosted: Wed Sep 05, 2018 4:49 pm
by soerweiwel
Hello,
to rename my Music files (in Bulk).

As it is actual FILE-Name: Artist name –(dash) Title (The TAGs arte right in Place, if i look with a Tag-tool, and shown with Virtual DJ; eg.)
Alanis Morissette - You Oughta Know.mp3
Alicia Keys - Fallin'.mp3

But i need: Title - Artist
You Oughta Know - Alanis Morissette.mp3
Fallin' - Alicia Keys.mp3

Re: How i switch the words before and after the - hyphen?

PostPosted: Wed Sep 05, 2018 8:59 pm
by therube
I'm not sure if this is right or not?
It kind of works, mostly works, I guess, but I'm not understanding my second example?
I'm not sure what the second example is doing? And based on that, I guess my code isn't quite right?

1:RegEx
Code: Select all
Match:  (^.*) - (.*)
Replace:  \2 - \1


Angela Hewitt - Beethoven, Piano Sonatas Vol. 1.mp4
Beethoven, Piano Sonatas Vol. 1 - Angela Hewitt.mp4

Copy of Angela Hewitt - Beethoven, Piano Sonatas Vol. 1 - (2006).mp4
Beethoven, Piano Sonatas Vol - Copy of Angela Hewitt. 1 - (2006).mp4

Re: How i switch the words before and after the - hyphen?

PostPosted: Wed Sep 12, 2018 9:12 pm
by soerweiwel
Thanks.
But i understand NOTHING!

Re: How i switch the words before and after the - hyphen?

PostPosted: Thu Sep 13, 2018 12:56 am
by Admin
Hi,

In BRU, first clear all renaming options you might have set, by clicking on the "reset" button (next the button RENAME).

Then use RegEx (1).
In the field Match enter : (^.*) - (.*)
in the field Replace enter : Replace: \2 - \1

The above basically means "switch text around <space>-<space>"

Then select a few files that you wish to rename and check in the BRU file list if the New Name column shows the file correctly renamed as you need.
If positive, click on "Rename" to actually rename them.
You might want to copy them in a separate location before experimenting.

Let us know how it goes,
thanks

Re: How i switch the words before and after the - hyphen?

PostPosted: Thu Sep 13, 2018 2:06 pm
by soerweiwel
THANKS! THANKS! THANKS! :D
to the "Admin" and "therube"! :D
It works perfectly! :D :D :D
Regards
SoerWeiwel,2018-09-13 15:05h