Change the order within a tag

Hi,
In my library of concert recordings I use the following
scheme for the album title:

1967-11-07 - Konserthuset, Stockholm

In the tag I want it presented like this:

Konserthuset, Stockholm - 1967-11-07

How can I do this, without changing the filename?

All best
---Hank

The following action should do the trick:

Action type: Replace with regular expression
Field: ALBUM
Regular expression: (.*) - (.*)
Replace matches with: $2 - $1

[ ] case-sensitive comparison

I return to this old reply that helped me a lot the last 12 years! :slight_smile:

I try to use it on a more complicated action but can't get it to work.

In my concert recordings I tag ALBUMARTISTS with musicionas and instruments, like this (A)

Henry Threadgill - flute; alto sax, Liberty Ellman - acoustic guitar, Stomu Takeishi - acoustic bass

but some tags are named differently, like this (B)

flute; alto sax - Henry Threadgill, acoustic guitar - Liberty Ellman, acoustic bass - Stomu Takeishi

There can be more musicians of course.

Anyone who could help me rearrange (B) into (A)?

Best wishes /Henry

This one is a little bit trickier as it consists of multiple pairs that need to be rearranged.

Action type: Replace with regular expression
Field: ALBUMARTIST or ALBUMARTISTS (depending on the actual field name)
Regular expression: (.+?) [-|–|—] (.+?)(,|$)(\s?)
Replace matches with: $2 - $1$3$4

[ ] case-sensitive comparison

Florian! That was quick. Thanks.
Tried this, followed your instructions and copied your formulas, couldn't get it to work, nothing happened in the field, which is named ALBUMARTIST of course. The one I tried looked like this:

Bass Clarinet; Acoustic Guitar; Electric Guitar – Doug Mathews, Drums; Tenor Saxophone; Piano – Anthony Cole, Tenor Saxophone; Soprano Saxophone; Flute; Vocals; Piano – Sam Rivers

Hmm?

It's hard to track by eye, but there are different types of dashes and your example string uses ndashes.

  • - dash
  • – ndash and
  • — mdash

I've updated the regular expression above to take into account the different types of dashes. The resulting string will use normal dashes (or whatever you'll put there).

Thank you! Works perfect!
The dashes comes from different places (Discogs etc), I understand now that they are different, hard to see.
I also understand why I couldn't sort this out myself...Hahahaha.
Great help, thank you, Florian! /Henry