I am trying to create an action that wil format all collaboration templates as:
Artist 1, Artist 2
it is meant to replace formatting such as:
Artist 1 feat Artist 2
Artist 1 feat. Artist 2
Artist 1 featuring Artist 2
Artist 1 / Artist 2
Artist 1 // Artist 2
Artist 1//Artist 2
etc
This is the regex I am currently using: ( feat(\.|uring)? | ?\\{1,2} ?| ?/{1,2} ?)
replaced with: ,
I am trying it on a track that is formatted as such:
Artist 1\\Artist 2\\Artist 3
But not getting any results (the action does nothing). I am assuming the issue lies in this part: \\{1,2} and esaping the backslash properly. What am I doing wrong?
Additionnally, (this is a tengential question), if anyone knows how I can automatically transform:
Track: Track 1 (feat. Artist 2)
Artist: Artist 1
into:
Track: Track 1
Artist: Artist 1, Artist 2
That would be of great help.
Thanks a lot!
Edit: added a backslash before the dot to escapte it, still not working
You are treating most likely a multi-value field which is the same field several times.
You have either use an action of the type "Merge duplacte fields"
or use the scripting function $meta_sep()
You can check for multi-value fields in the extended tags dialogue Alt+T
Please open a separate thread for the other problem to move parts of one field to another.
There are a great variety of suggestions and solutions already on this subject. Take a look through these topics to find one that works for your scenario. https://community.mp3tag.de/search?q=move%20feat
Hey, thanks for the blazing fast answer!
I am not sure what you mean when you say I am treating it as multi-value field. I am using the "Replace with regex" action type on the ARTIST field. My logic is that if part of the string in ARTIST matches this or that or that, it will be replaced by a comma.
Merging duplicate fields doesn't sound like what I want to do, as all the info is already into only one field.
Separating a field sounds closer to what I am trying to achieve but I have to create a sub action for every possible separator, which doesn't have the flexibility of a regex.
My issue is really on what is wrong with the expression itself if that makes sense.