String modification tutorial/examples

Hi there,

I'm using MP3TAG for a while now but still I get stuck when it comes to modify strings in fileds like TITLE, ARTIST and FILENAME in an automated (batch) way.

I've been googeling around for hours and searching in this forum but couldn't find my way out.

Looking at this page , I think what I'm looking for is here but I would need some examples to help me in the first steps. There are not enough explanations on this page to help me understand what I need to do. I don't understand the special characters function and how to use them (...I need examples...).

Just an example. I have FILENAME that I want to convert to TITLE and ARTIST.
FILENAME = "Pink Floyd - Another Brick In The Wall"
I'd like to get this result:
TITLE = "Another Brick In The Wall"
ARTIST = "Pink Floyd"

Maybe this functionality exists already in MP3TAG, but I don't know if it does.

Second, my idea is to "split" the filename and trim it to get the results I expect. But this might be wrong way of doing too.

Clearly, I don't know where to start but a tutorial in STRING handling would be, at least for me, a huge help.


MP3Tag has the Convert-menues and actions.
For your example you can use both.

Convert Filename - > Tag
Format String: %artist% - %title%

Type: Guess Values
Source Format: %_filename%
Guessing pattern: %artist% - %title%

Both work because you have a unique delimiter between artist and title in your source, in your case "white space'-'white space".
It would not work if this delimiter already would occur in the artist itself.

Thank you, Poster.

I does work :slight_smile: