Removing " , " at end of Artist field

Hi !

I need to remove the character " , " when it is present at the end of Artist Name field.

How do I remove it ?

Your example character string is three characters long "space comma space".

So my first thought was ...
$trim(%ARTIST%,' ,')
... which removes space and comma from both sides of the given string.

Second thought was using a regular expression ...
$regexp(%ARTIST%,'\s*,\s*$',)
... which removes space and comma from the end of the string, if existing.

There might be other Mp3tag scripting solutions.

DD.20100326.1108.CET

Still having problems.... :unsure:

================================================================

PLEASE ! tell me where I put those commands. ie., (replace, regular expression, guess value....)

What I want is to remove the "," if it appears after the Artist Name:

from ARTIST: Madonna,
to ARTIST: Madonna

Yes, you can use an action "Guess values" too! Thanks for the hint.
Action "Guess values"
Source format: %ARTIST%
Guessing pattern: %ARTIST%,

DD.20100401.0548.CEST

Thanks again !!! You are the very best member here....

:rolleyes: Hehe, Kimosavi, so much praise, maybe one of few, I do not know if I really deserve it.

DD.20100402.1314.CEST

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

DD.20110801.1630.CEST