Removing last title character when it is a comma (,)

I need to remove a comma at the end of the title: My Song,

Please help !

2 Posts but only 1 answer :wink:


But this option, will remove all the comma's in the Title, No doubt that another member will come up with a fancier solution :wink:

fancier solution :
Action: Format Value
Field: TITLE
Formatstring: $regexp(%title%,',$',)

removes the last character if it is a comma

This removes all trailing commas.
Action: Format value
Field: TITLE
Formatstring: $trimRight(%TITLE%,',')

This removes only one trailing comma, if the last character is a comma.
Action: Format value
Field: TITLE


See also:
Removing " , " at end of Artist field


Thanks for helping, but doesn't work. Comma is not removed at the end of the title (no spaces).
I tried the command using copy & paste, so there is no error while copying...

Ie: Song Title,

pone's proposal works for me ...

... as good as my proposals.

'Kimosavi', you are struggling on removing a comma since your first post on this theme at Mar 26 2010, 10:01. You have gotten a big bag of help and working examples what users of Mp3tag can think of.
Please talk back what method does work for you.

In your last post from Aug 4 2011, 22:41 you gave the example string ...
Ie: Song Title,
... so what tagfield is really involved?
what else?