Relocate text in music filename

A swapping-ground for Regular Expression syntax

Relocate text in music filename

Postby blaylok » Tue Nov 28, 2017 8:31 am

Hi there,

I am having trouble setting up bru to rename my music filenames.

At present the filenames are like this:

01. Led Zeppelin - Black Dog.flac
02. Jimi Hendrix - Purple Haze.flac

And I want them to be like this instead:

01. Black Dog - Led Zeppelin.flac
02. Purple Haze - Jimi Hendrix.flac

I can't quite figure out how to do it?

Any help would be greatly appreciated.

Thank you,

blaylok
blaylok
 
Posts: 2
Joined: Tue Nov 28, 2017 8:19 am

Re: Relocate text in music filename

Postby KenP » Tue Nov 28, 2017 1:17 pm

I'm not able to try this in BRU at the moment but it should work.

RegEx (1)
Match: (\d+). (.*) - (.*)
Replace: \1. \3 - \2
KenP
 
Posts: 193
Joined: Sat Jul 30, 2016 11:25 am

Re: Relocate text in music filename

Postby blaylok » Tue Nov 28, 2017 2:21 pm

That is so awesome!

Just tried it and it works perfectly!

Thanks so much KenP :D
blaylok
 
Posts: 2
Joined: Tue Nov 28, 2017 8:19 am


Return to Regular Expressions