# Making an action on adding featured artist's to a title

**URL:** <https://community.mp3tag.de/t/making-an-action-on-adding-featured-artists-to-a-title/55487>\
**Category:** Support\
**Created:** [December 11, 2021, 9:34pm UTC](https://community.mp3tag.de/t/making-an-action-on-adding-featured-artists-to-a-title/55487 "2021-12-11T21:34:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![JPMusic](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jpmusic/32/10483_2.png) [@JPMusic](https://community.mp3tag.de/u/JPMusic)\
**Post date:** [December 11, 2021, 9:34pm UTC](https://community.mp3tag.de/t/making-an-action-on-adding-featured-artists-to-a-title/55487/1 "2021-12-11T21:34:48Z")

</div>

So I want to make an action where everything after the first comma in the _artist's field_ gets added to the _title field_ and the last comma gets tuned to a "&"

For example:

Title: Only  
Artists: Nicki Minaj, Lil Wayne, Drake, Chris Brown

_After the action_

Title: Only (feat. Lil Wayne, Drake & Chris Brown)

---

<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:** [December 11, 2021, 9:42pm UTC](https://community.mp3tag.de/t/making-an-action-on-adding-featured-artists-to-a-title/55487/2 "2021-12-11T21:42:02Z")

</div>

Try an action of the type "Guess value" (import tag fields)  
Source:`$regexp('%title%==%artist%','(.*)==(.*?),(.*)',$1 (feat.$3)==$2)`  
Target format string: `%title%==%artist%`

---

<div class="post-metadata">

**Author:** ![JPMusic](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jpmusic/32/10483_2.png) [@JPMusic](https://community.mp3tag.de/u/JPMusic)\
**Post date:** [December 12, 2021, 3:20am UTC](https://community.mp3tag.de/t/making-an-action-on-adding-featured-artists-to-a-title/55487/3 "2021-12-12T03:20:40Z")

</div>

[/uploads/default/original/2X/f/fec4e0f9ef09c0c0bd3dc43f3da6954960217e7d.mp4](https://community.mp3tag.de/uploads/default/original/2X/f/fec4e0f9ef09c0c0bd3dc43f3da6954960217e7d.mp4)
  
It didn't work properly.. did I do something wrong?

---

<div class="post-metadata">

**Author:** ![ryerman](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ryerman/32/5285_2.png) [@ryerman](https://community.mp3tag.de/u/ryerman)\
**Post date:** [December 12, 2021, 7:14am UTC](https://community.mp3tag.de/t/making-an-action-on-adding-featured-artists-to-a-title/55487/4 "2021-12-12T07:14:07Z")

</div>

In the source, remove the single quotes around %title%==%artist%, like this:  
`$regexp(%title%==%artist%,'(.*)==(.*?),(.*)',$1 (feat.$3)==$2)`

---

<div class="post-metadata">

**Author:** ![JPMusic](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jpmusic/32/10483_2.png) [@JPMusic](https://community.mp3tag.de/u/JPMusic)\
**Post date:** [December 12, 2021, 6:31pm UTC](https://community.mp3tag.de/t/making-an-action-on-adding-featured-artists-to-a-title/55487/5 "2021-12-12T18:31:20Z")

</div>

This action works but it removes the names from the artist field.. Like this

Title: Only  
Artists: Nicki Minaj, Lil Wayne, Drake, Chris Brown

_After the action_

Title: Only (feat. Lil Wayne, Drake & Chris Brown)  
Artists: Nicki Minaj

And I still want the last comma to be turned to a '&'

---

<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:** [December 12, 2021, 7:11pm UTC](https://community.mp3tag.de/t/making-an-action-on-adding-featured-artists-to-a-title/55487/6 "2021-12-12T19:11:27Z")

</div>

> [@JPMusic](#):
>
> Nicki Minaj, Lil Wayne, Drake, Chris Brown

Try an action of the type "Format value" for TITLE  
Format string: `%title% (feat. $regexp($regexp(%artist%,'(.*?), (.*)',$2),'(.*), (.*)',$1 & $2))`

---

<div class="post-metadata">

**Author:** ![JPMusic](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jpmusic/32/10483_2.png) [@JPMusic](https://community.mp3tag.de/u/JPMusic)\
**Post date:** [December 12, 2021, 7:21pm UTC](https://community.mp3tag.de/t/making-an-action-on-adding-featured-artists-to-a-title/55487/7 "2021-12-12T19:21:55Z")

</div>

Thank you so much it worked. Have a blessed day! 😁 😁

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [January 11, 2022, 7:22pm UTC](https://community.mp3tag.de/t/making-an-action-on-adding-featured-artists-to-a-title/55487/8 "2022-01-11T19:22:37Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
