Delete parts before / after specific characters

Hi all,

I tried so many things and read some old forums here, but it didn’t help.

My filename is always the same for an audiobook:

Book title - subtitle (year, artist)

Example: ABC - DEF (2026, Joe Roe)

I copy the filename and insert in: title, interpret, and album.

Via grouping actions, I want:

Titel:

ABC

(Delete everything with and after “ _ “)

Interpret:

Joe Roe

(Delete everything until “(“ and the next 5 characters, and delete the last character)

Album:

ABC - DEF

(Delete everything with and after “ (“)

Can anybody help me here?

One suggestion is

a) Convert Filename - Tag with
Formatstring:
%title% - %album% (%year%, %artist%)

followed by

b) Convert Tag - Tag with
Field: ALBUM
Format string:
%title% - %album%

Why don't you put the data with Convert>Filename - Tag into the correct fields straightaway?
Format string: %album% - %title% (%year%, %artist%)

Thank you

LyricsLover and ohrenkino.

I didn’t know that this function exist.

However, I can’t choose this option in the grouping actions area, right? I would prefer a 1 click solution at the end :slight_smile:

To make it more specific why I came up with my initial idea above:

The folder name is: Book title - subtitle (year, artist)

The filename: Book title (year, artist)

This is because I like when the filename is short, and sometimes the subtitle is really long :slight_smile:

So what I do is:

  1. I create the folder name: Book title - subtitle (year, artist)

  2. Copy the folder name and use it for the filename; however, delete the subtitle manually with the keyboard.

  3. mp3tag: put the file in it, insert the whole long name “Book title - subtitle (year, artist)” into title, interpret, and album and start deleting by each the irrelevatn part.

I know this is not efficient, but with your suggestion, I couldn’t find the option of “filename - tag” in the group action section. Is there one? If yes, I could use your suggestion and as the last step: make filename %title% (%year%, %artist%). And done :slight_smile:

That is why we wrote

and

The function can be found in the Convert menu.

If you want to include the folder in your search for data, expand the
Format string: %title%\%album% - %dummy% (%year%, %artist%)

And to get your process right: it should be the other way round: you fill the tag fields first and then create filenames and folder names from it.
See also the documentation:

The converters and its various incarnations should be known to you since this thread:

I would recommend solving it this way:
a) Manually name your file with the "longer" version as Book title - subtitle (year, artist)
b) Let Mp3tag fill the tags as mentioned above from your filename with Convert Filename - Tag
c) Let Mp3tag create your foldername and rename your filename inside the folder name.

or as an alternative, you could

a) Fill the book title, the subtitle, the year and the artist directly in the matching fields TITLE, ALBUM, YEAR and ARTIST of your file
b) Let Mp3tag create your foldername and let Mp3tag rename your filename inside the folder name as you like it.

I read this of course, but again, I did not fully get the logic and it was not working.

However, now it works and I thank you all for the fast reply.