How to batch edit extended tags

I have many albums with a split title, such as ABBA - Gold - Greatest Hits - Extended Edition.
The title has been added in with hyphens so that when I export in the format - - - <track#>, the track number actually becomes 'Extended edition - 01', 'Extended Edition - 02' etc.
I can alter each one in Extended tags easily, but is there a batch way of doing them all at once, but retaining the track numbers?

Could you show us a real example?
Or try an action of the type "Format value" for TRACK with
Format string: $regexp(%_filename%,.*(\d+),$1)
and if that does not work, the real filename would be nice.

That is a real example. "Extended edition - 01" is in the tag 'track number'. I edit it manually to simply say "01", but then I have to manually edit every track by hand.
I'm afraid you're not talking to an expert, I can't program, so the format stuff is alien to me. :frowning:

You really see "Extended edition - 01" in the TRACK tag?

image

Yes. I don't know how to post a screenshot or I'd show you

You can just copy & paste a screenshot directly in your answer or follow this hints.

2023-11-08_151246
Oh cool! As you can see this one has inherited "B sides" before the track number. There's a lot of albums like that. I don't know of an easy way to edit them all so I have to do them 1 by 1 by hand and it's taking hours.
Originally the Album name was written "Gold 40th Anniversary Edition CD3 - B sides"
I think that hyphen is what triggered the auto track numbering

Try Convert>Tag-Tag for TRACK
Format string: $regexp(%track%,.*- (\d+),$1)

1 Like

@ohrenkino's regular expression is the more professional way to cut the (2) numbers from your existing string then using
image

1 Like

Holy Moly I have no idea at all what that all means, but it worked!! Thank you, saved me countless hours of work!

Looking for any character before the hyphen and a space,
then group together all numbers.
Replace the current value in TRACK with only the group $1 (the numbers).
image

Sheer witchcraft, but thanks :slight_smile:

1 Like