Apostrophes are hyphens, how to convert?

Hi! I've started using Mp3Tag while ago and realized that it is very powerful tool to mess with filenames and tags. I have many files with wrong characters where apostrophes are hyphens. This is a failure of the youtube downloader I use.


Can't is Can-t
You're is You-re
I'll is I-ll

I think you got the point with these. I've created action group with few things and I would like to grow it with one action that correct's these. I realize that it must be something like:

search: [any_letter]-[any_letter]
replace: [any_letter]'[any_letter]

I tried to look help from here but didnt manage to solve the problem since I've never created a regular expression, I get the idea, but don't know how to form one: http://help.mp3tag.de/options_format.html#regexp

Try "Replace with regular expression"
Search string: (.)-(.)
Replace string: $1''$2

I would filter the tracks first so that you only get those where the hyphen is not meant as a hyphen
Filter: %title% HAS "-" AND NOT %title% HAS " - "

Damn, I just noticed that there are many artist names that will change wrongly with this. I think that this is easier done by just making replace actions for examples stated before since there are not so many different words with these mistakes. Thank you still for trying to help!

Is there any way to list many words to replace action? This would help to keep the action list I'm creating shorter and more clear to read and edit.



You would have to use an action of the type "Format value" for that field (e.g. TITLE)
Format string: $replace(%title%,dj,DJ,featuring,Feat.,presents,Pres)

1 Like

Does this action include case sensitive comparison for search criteria? If it does, can it be disabled?

It is case sensitive.
It cannot be disabled.
You would have to use for each case a separate pair.
If the case should be ignored that you have to use an action of the type "Replace" - but there you cannot enter several terms, you would have to create an action for each replace term.
Or you run a case conversion action first ...

1 Like

What a brilliant idea! This way the format of the words would be same and there would be no need to add more than one variation off certain word. I can create a one action for multiple words and also categorize if needed to separate actions.

I have to create backup of these settings that the work won't get lost in a bit heaven if something happens :slight_smile: Also to move these settings to my other PC. Thanks!

Where can I find syntax list for different things in this software?

I got this to work for %artist% and %title% but %filename% is fighting back :japanese_ogre:

I could run convert tag to filename, but usually I have files where the filename is correct and it needs to be converted to tag.

There is the list of supported fields:


And there is other help about functions and parameters in

(it is %_filename% BTW)

1 Like


This returns a syntax error. I bet hyphen is not supported by $replace function. Any ideas for workaround?

with a duplication of the apostrophe should work.
(see Probleme mit Wörter ersetzen