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:

Actions

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

$if($eql($right(%TITLE%,1),','),$cutRight(%TITLE%,1),%TITLE%)

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

DD.20110801.1626.CEST

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?
TITLE
or
_FILENAME
or
what else?

DD.20110805.0540.CEST