Renaming Title Artist Swap

Bulk Rename Utility How-To's

Renaming Title Artist Swap

Postby KaraokeJake » Sun Oct 27, 2019 5:13 pm

Hello new to expressions, I have used the string (.*?)-(.*) and replaced with \2 - \1 and nothing happens, if I enter (.*?)-(.*) without - then a change is made and it turn green.

What if any am i doing wrong?

Thanks
KaraokeJake
 
Posts: 3
Joined: Sat Oct 26, 2019 4:10 pm

Re: Renaming Title Artist Swap

Postby therube » Sun Oct 27, 2019 8:45 pm

Looks to be working here.

Before, & after:

Code: Select all
188 - The Locked Door - Aladdin - 6 May 2019.MP4
The Locked Door - Aladdin - 6 May 2019 - 188 .MP4

187 - Yasmine's Dream - Aladdin - 3 May 2019.MP4
Yasmine's Dream - Aladdin - 3 May 2019 - 187 .MP4

24 Hours – Two Sides of Crime S01E04 - .mkv
  - 24 Hours – Two Sides of Crime S01E04 .mkv

19-2 S04E01 - Der falsche Schuldige.mkv
2 S04E01 - Der falsche Schuldige - 19.mkv


(For some reason, the code block is not displaying things "correctly"?
As there are [actual] spaces before the T, in The, & the Y, Yasmine's, but they are not displaying as such, here?)

Also note some of the other space oddities, that do show.
Depending on your filenames, (.*?) - (.*) (with spaces separating the dash) might work out "cleaner".

Also, ensure that your "dash" is a dash, & not some character that looks like a dash, like, –, which is not.
(That may be a dash, again, as displayed here, not quite sure?, but the original character pasted here, was not.)
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm


Return to How-To