Splitting Album Title From Year In Filename


#1

Hi Guys

I'm new to MP3Tag and have looked through the posts trying to find a simple response to what feels like a straightforward query. I have multiple files with the following file name format:

Track Artist - Title - Album Year

I want to create the following fields:

Track - Artist - Title - Album - Year

Using MP3Tag's file name to tag converter I can't seem to separate the album title from the year - is there an action I can create that will place a 'dash' between the 'Album' and 'Year' fields in the file name that will then allow me to convert to tag this way?

Like most things in life I'm sure the answers are there but when you're unsure what you're looking for it's not always a help.

Thanks in advance for any guidance.


#2

There is no ready-made action - but with little adaption, you should get it:
Create an action of the type "Replace with regular expression" for _FILENAME
Use this as search string:
(.*) (\d\d\d\d)$
Use the following replace string:
$1 - $2
if you then create new filenames I would suggest that you do not use the hyphen as field separator but a character that is seldomly used in ordinary phrases. I prefer the underscore _.
This yould then make it much easier to regain the information from the filenames, even if the title or album already have hyphens as part of the data.


#3

Thanks for your reply ohrenkino. I've tried the search and replace strings kindly suggested and played around quite a bit too but nothing so far has actually changed the file name itself?

An oversight on my part may be the file name as it appears in MP3tag - namely:

Track Artist - Title - Album Year.mp3

instead of:

Track Artist - Title - Album Year

as stated in my original post. If this is a factor then I apologise wholeheartedly. Searching for clues online has given me a helpful 'beginners guide to regex' but I still feel out of my depth!

Thanks again in advance for any input.


#4

Please try
(.) (\d\d\d\d)
instead of
(.
) (\d\d\d\d)$


#5

Great ohrenkino - that works perfectly! Thanks again for your time and patience. I intend to spend some time getting more familiar with creating strings but your initial help has saved me a great deal of time and frustration.