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

Post any Bulk Rename Utility support requirements here. Open to all registered users.

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

Postby soerweiwel » Wed Sep 05, 2018 4:49 pm

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
soerweiwel
 
Posts: 3
Joined: Mon Sep 03, 2018 10:21 pm

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

Postby therube » Wed Sep 05, 2018 8:59 pm

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
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

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

Postby soerweiwel » Wed Sep 12, 2018 9:12 pm

Thanks.
But i understand NOTHING!
soerweiwel
 
Posts: 3
Joined: Mon Sep 03, 2018 10:21 pm

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

Postby Admin » Thu Sep 13, 2018 12:56 am

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
Admin
Site Admin
 
Posts: 2343
Joined: Tue Mar 08, 2005 8:39 pm

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

Postby soerweiwel » Thu Sep 13, 2018 2:06 pm

THANKS! THANKS! THANKS! :D
to the "Admin" and "therube"! :D
It works perfectly! :D :D :D
Regards
SoerWeiwel,2018-09-13 15:05h
soerweiwel
 
Posts: 3
Joined: Mon Sep 03, 2018 10:21 pm


Return to BRU Support