# Copy featuring artists and trim

**URL:** https://community.mp3tag.de/t/copy-featuring-artists-and-trim/16340
**Category:** Support
**Created:** [November 17, 2014, 4:51am UTC](https://community.mp3tag.de/t/copy-featuring-artists-and-trim/16340 "2014-11-17T04:51:28Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [November 28, 2014, 6:57pm UTC](https://community.mp3tag.de/t/copy-featuring-artists-and-trim/16340/5 "2014-11-28T18:57:16Z")

</div>

> [@DJ Dizzle](#):
>
> Could somebody please assist with this? preferably, if $if statements could be used with the above in mind.

As you have more or less any permutation with brackets and sequence in your tags, you have to deal with every case individually.  
What I would suggest:  
First copy the contents of TITLE to FEAT\_ARTIST  
(FEAT\_ARTIST is now a user-defined field). You achieve this with an action of the type Format value for FEAT\_ARTIST and the format string %title%.

Now apply several actions of the type "Guess value" for FEAT\_ARTIST  
Each of these actions cuts away the stuff that you don't want, e.g.  
Title (feat. Artist) (Mixartist Mixtype)  
can be extracted with  
%dummy% (feat. %feat\_artist)%dummy%  
I am sure, you can devise similar actions for other sequences or brackets.

Once you have extracted the featured artist to FEAT\_ARTIST, you can now append ARTIST with FEAT\_ARTIST with an action of the type "Format value" for ARTIST and the format string  
%artist% (feat. %feat\_artist%)

After that you delete the field FEAT\_ARTIST.  
And then you delete any bracket followed by "feat." with an action of the type "Replace with regular expression" for TITLE, e.g.  
Search: (._) (feat._)\s(.\*)  
Replace: $1 $2

---

_[View the full topic](https://community.mp3tag.de/t/copy-featuring-artists-and-trim/16340)._
