How to replace the fourth underscore to a dash?

i have a title as ...union_of_artistic_people_in_pure_verse
i want it to be as ...union_of_artistic_people-in_pure_verse
that is i want to get the fourth underscore to a dash. how can i accomplish that?

I hope this looks simple enough to understand ... replace the fourth underline from the left with a hyphen:




thanks for the suggestions but sorry, it is not clear. what is to be done? where to look in the actions- replace or actions replace with?
if it is actions
mp3tag requires the orginal and replace string. then as you have shown should i put the real title in the original and the in the replace line-the string starting with the carrot sign???

or if it is replace with regular expression i have to give the regular expression.. i tried here with your suggestions part starting with the carrot sign but it doesn't work. i have a series of titles in the format given. i want to change it as shown above that is change the fourth underscore to a dash. suggestions plz.

Well I can understand your problems, as I started with Mp3tag years ago I was blind like you. The situation is, I sit here and you sit there behind the computer. I cannot take you at hand and do the all things for you. You have to do some work of your own.

I slightly changed my proposal from above, so you may see what tag field is envolved, this is the TITLE tag field what you want to manipulate. Take care that your input strings fit to the regular expression mask, otherwise you will get irritating results. On the basis of the numerous hints and explanations for all cases here on the board you should be able to adapt my simple proposal to your specific needs. My proposal is based on a "Format value" action to work. You can take over the idea and use the regular expression from my proposal with an action "Replace using regular expression".

If you do not understand how a regular expression will be constructed you are free to use all the "traditional" Mp3tag scripting functions to solve your problem. The caveat is, that sometimes you will get rather long expressions to reach your goal, at the other hand a short regular expesssion can do the same.

Good luck, feel free to try out for yourself, that's the best way to learn for yourself.


This seems like a simple one-off kind of edit -- do you really need a regexp for it? Why not just select all the tracks that need the change and change it manually?

yeah I doubt he's got so many tracks from "Union of Artistic People".. manually editing a whole album takes like half a minute. Hell, simply copying this given code and make an action etc takes more time than that:D

On the other hand maybe he wants to learn how things work - nice, but then I doubt he read the FAQ..

2 posts were split to a new topic: Remove hyphens in filename