Reversing dates and titles

Bulk Rename Utility How-To's

Reversing dates and titles

Postby nothinglivid » Mon Nov 13, 2023 6:49 am

Hello, I basically have files named like this:

23-10-12 [Vacation] Hawaii (Jesse Longing).mp4

I need to rename them to this:

[Vacation] 23-10-12 Hawaii (Jesse Longing).mp3

Any tips? Thanks!
nothinglivid
 
Posts: 3
Joined: Mon Nov 13, 2023 6:48 am

Re: Reversing dates and titles

Postby nothinglivid » Mon Nov 13, 2023 6:50 am

I made a tiny typo on the result.

I want them to turn into

[Vacation] 23-10-12 - Hawaii (Jesse Longing).mp4

Sorry for the confusion!
nothinglivid
 
Posts: 3
Joined: Mon Nov 13, 2023 6:48 am

Date [Text] text --> [Text] Date - text

Postby Luuk » Mon Nov 13, 2023 9:06 am

For the example, RegEx(1) can use a checkmark for "Simple" with a Match and Replace like...
%1-%2-%3 [%4] %5
[%4] %1-%2-%3 - %5

If needing something more exact, can remove the checkmark and use something like...
^(2\d-\d\d-\d\d )(\[[^]]+\] )(.+)
\2\1- \3
Luuk
 
Posts: 706
Joined: Fri Feb 21, 2020 10:58 pm

Re: Reversing dates and titles

Postby therube » Mon Nov 13, 2023 4:44 pm

If [whateveritmaybe] is always the second "string", you could parse on the spaces.

1:RegEx, enable, Simple
Code: Select all
Match:  %1 %2 %3
Replace:  %2 %1 - %3
therube
 
Posts: 1319
Joined: Mon Jan 18, 2016 6:23 pm

Re: Reversing dates and titles

Postby nothinglivid » Mon Nov 13, 2023 5:21 pm

Ty to you both, both examples helped me a lot. Now I've got an idea of how to bulk rename the other files too which are in an entirely different naming scheme!
nothinglivid
 
Posts: 3
Joined: Mon Nov 13, 2023 6:48 am


Return to How-To