renaming issue with two files

Bulk Rename Utility How-To's

renaming issue with two files

Postby heartradiousa » Mon May 18, 2020 12:56 am

I have Three renaming issues I need Help with they first file is going to be artist name - 01 - song title.mp3 I need to remove one or two digits numbers and one dash so the final output is artist name - song title.mp3 Issue number two is I have a file artist name-song title.mp3 and I need to ad the space for the dash
artist name - song title.mp3 will look like this when corrected. the third issue is song title-artist name.mp3 i need to reverse the artist name and put it in front of the song title with a dash to read like this artist name - Song title.mp3

thanks
Nick DeFosset
heartradiousa
 
Posts: 19
Joined: Thu Mar 01, 2018 11:38 pm

Re: renaming issue with two files

Postby therube » Mon May 18, 2020 12:23 pm

1:RegEx

1)
Code: Select all
Match:  (.*?)(\s-\s\d{1,2}\s-\s)(.*)
Replace:  \1 - \3



2)
Code: Select all
Match:  (\w+)-(.*)
Replace:  \1 - \2



3)
Code: Select all
Match:  (.*?)(\s-\s)(.*)
Replace:  \3\2\1



In all cases, this assumes that you have selected files in the formats you have mentioned.
Also note that the checks are generally for the "first instance" of a "dash", so if you have multiple dashes, or if a dash occurs in the artist_name... that could throw things off. IOW, you have to understand what you have & where things might break.

For instance, 3) will also affect the file name you are starting with in 1), so if that file, from 1) were selected, it would (wrongly) be renamed by 3).



2)
could also be done with this - if there is only a single dash in the file name:

3:Replace
Code: Select all
Replace:  -
With:  <space>-<space>
therube
 
Posts: 1319
Joined: Mon Jan 18, 2016 6:23 pm

Re: renaming issue with two files

Postby heartradiousa » Mon May 18, 2020 5:51 pm

this is working one question it looks like I have spacing in front of the files how do i correct this and make sure there is no space in front of every file name?
heartradiousa
 
Posts: 19
Joined: Thu Mar 01, 2018 11:38 pm

Re: renaming issue with two files

Postby therube » Tue May 19, 2020 6:12 pm

5:Remove -> Trim
therube
 
Posts: 1319
Joined: Mon Jan 18, 2016 6:23 pm

Re: renaming issue with two files

Postby heartradiousa » Wed May 20, 2020 5:41 am

How do I search with a certain name in a group of file names this renaming project I'm working on is for a giant music catalog.
heartradiousa
 
Posts: 19
Joined: Thu Mar 01, 2018 11:38 pm

Re: renaming issue with two files

Postby therube » Thu May 21, 2020 4:19 pm

12:Filters -> Mask
therube
 
Posts: 1319
Joined: Mon Jan 18, 2016 6:23 pm

Re: renaming issue with two files

Postby heartradiousa » Thu Jun 04, 2020 2:28 am

I need to take this file name 1. Song Title-Artist Name-Album Title.mp3 and do the followng
1. i need to remove the number and period, this number could be 2 digits sometimes
2. Move the Artist Name to the front
3. Put a space with a dash between the artist name and song title like this "Artist Name - Song Title
4. Delete the Album Title

so the final out put reads like this Artist Name - Song title.mp3
heartradiousa
 
Posts: 19
Joined: Thu Mar 01, 2018 11:38 pm


Return to How-To