I want to tag live albums in a special manner.
All titles of a live album should get a postfix "[Live]" and also the album tag itself.
But if an album or title already contains a "[Live]" at the end it should keep it as is.
This should also include variations like "[Live At Budokan]"
Any idea how I can do this with an action?
I know that an easy regex-match would be
But how can I negate it (matching only lines which doesn't contain this?
And / Or combine it with a replacement?
Could somebody please push me to the right direction?
As we say in German: "Ich stehe auf dem Schlauch"
It ignores case (fourth parameter to regexp), also finds "(Live)" and either adds a "[Live]" to the end or replaces the existing one to be always surrounded by a "[", "]" pair.
"Hello My Friend" -> "Hello My Friend [Live]"
"Hello My Friend [Live]" -> "Hello My Friend [Live]"
"Hello My Friend (Live, US) " -> "Hello My Friend [Live, US]"
"Hello My Friend (Live, US]" -> "Hello My Friend [Live, US]"
The latter is an accident because I'm unable to match only character "pairs" (so that a leading "(" only matches to a closing ")" and not to "]")