So I'm trying to rename all folders for this particular artist. I currently tried Tag - Tag Field: _DIRECTORY and Format String to be: %year% - %album% — %artist%
My problem is that I want everything leading up to the / in my artist field to be removed just for the folder names. I tried the $replace function but in my screenshot you can see that some releases have multiple artists before the slash.
The filename is converted correctly, it's converting the %year%, %artist% and %album% to the folder directories for each album. I have the composer(s) as the artists before the forward slash in the artist field which I want to keep, but not when I'm renaming the directories.
For instance, the first album being Cello Concerto, I want the folder directory to look like:
1989 - Cello Concerto,etc. — The Bamberg Symphony Orchestra, Frans Helmerson, Neeme Jarvi
The second album Trivium:
1992 - Trivium — Christopher Bowers-Broadbent
You could try it with this convert Tag -> Filename ALT + 1
The regular expression around the ARTIST %year% - %album% — $regexp(%artist%,(.*)\/(.*),$2)
works like this:
Search everything in ARTIST before the first slash and put it into group #1.
Then search for everything after the first slash and put it into group #2.
Replace the complete content of ARTIST with the part in group #2.
This does not change your content in the tag ARTIST, the content will only changed for your output.
If you want it as folder, you can add your title after a backslash like this: %year% - %album% — $regexp(%artist%,(.*)\/(.*),$2)\%discnumber%-%track% - %title%
Please test it carefully, because it really just look for everything BEFORE and AFTER the first slash in your ARTIST tag. If your data does not following this scheme, the regular expression will not produce the expected result!