# Creating an action plan to add role/name (;)

**URL:** https://community.mp3tag.de/t/creating-an-action-plan-to-add-role-name/14764
**Category:** Support
**Created:** [May 29, 2013, 2:41am UTC](https://community.mp3tag.de/t/creating-an-action-plan-to-add-role-name/14764 "2013-05-29T02:41:32Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Beluna](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/ed655f/32.png) [@Beluna](https://community.mp3tag.de/u/Beluna)
#### Post date: [May 29, 2013, 2:41am UTC](https://community.mp3tag.de/t/creating-an-action-plan-to-add-role-name/14764/1 "2013-05-29T02:41:32Z")

</div>

How to create an action plan to deterine role/name and add a ;.

Discogs format under pone script looks as so (role/name):

## Bass, Vocals: Alex Malheiros

## Drums, Synthesizer [Arp 2600]: Ivan Conte (Mamão)

## Keyboards, Vocals, Percussion: Jose Roberto Bertrami

Currently, I manually cut / paste the info and then add a ;.

In those instance where Discogs doesn't provide any metatag, I would like to add my own info with the same format. Is it possible to create an action to determine (role/name)? and then add 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: [May 29, 2013, 3:54am UTC](https://community.mp3tag.de/t/creating-an-action-plan-to-add-role-name/14764/2 "2013-05-29T03:54:57Z")

</div>

> [@Beluna](#):
>
> ...and then add a ;

Where do you want to add that semicolon? I can see nothing but text without it.  
If you want to append a field with a certain string, see the FAQs  
[/t/967/1](https://community.mp3tag.de/t/967/1)

---

<div class="post-metadata">

### Author: ![Beluna](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/ed655f/32.png) [@Beluna](https://community.mp3tag.de/u/Beluna)
#### Post date: [May 29, 2013, 6:39am UTC](https://community.mp3tag.de/t/creating-an-action-plan-to-add-role-name/14764/3 "2013-05-29T06:39:28Z")

</div>

> [@ohrenkino](#):
>
> Where do you want to add that semicolon? I can see nothing but text without it.  
> If you want to append a field with a certain string, see the FAQs  
> [/t/967/1](https://community.mp3tag.de/t/967/1)

The semicolon would be placed after each (role / name)

as such:

Bill Evans - Piano;  
Flora Purim - vocals;  
Stanley Clarke - Bass;

Just to be clear, using the example below. Let's say I cut an paste the personnel on this album. Instead of manually adding a semicolon to each role/ name i wanted and action.

Sonny Rollins – tenor saxophone  
Kenny Dorham – trumpet  
Elmo Hope – piano  
Percy Heath – bass  
Art Blakey – drums

becomes:

Sonny Rollins – tenor saxophone;  
Kenny Dorham – trumpet;  
Elmo Hope – piano;  
Percy Heath – bass;  
Art Blakey – drums;

using another action  
`$regexp($regexp(%performers%,(;$|;([\r\n])),$1\r\n----------------------------),;$,)` becomes:

```auto
Sonny Rollins – Tenor Saxophone
----------------------------
Kenny Dorham – Trumpet
----------------------------
Elmo Hope – Piano
----------------------------
Percy Heath – Bass
----------------------------
Art Blakey – Drums
--------------------------

```

---

<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: [May 29, 2013, 9:03am UTC](https://community.mp3tag.de/t/creating-an-action-plan-to-add-role-name/14764/4 "2013-05-29T09:03:00Z")

</div>

If you want to add the semicolon to the "line feed carriage return" characters then use a "simple" action of the type "Replace with regular expression" for the field where you have the roles.  
Format string:  
\r\n  
Replace string:  
;\r\n

## This will also add a semicolon to the separator lines. ----------------------------; If you want to get rid of this, use "Replace" for the field where you have the roles. Format string: -; Replace string:

---

<div class="post-metadata">

### Author: ![Beluna](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/ed655f/32.png) [@Beluna](https://community.mp3tag.de/u/Beluna)
#### Post date: [May 29, 2013, 10:43pm UTC](https://community.mp3tag.de/t/creating-an-action-plan-to-add-role-name/14764/5 "2013-05-29T22:43:59Z")

</div>

Works perfectly...

Thanks

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [March 15, 2024, 7:09am UTC](https://community.mp3tag.de/t/creating-an-action-plan-to-add-role-name/14764/6 "2024-03-15T07:09:16Z")

</div>

A post was split to a new topic: [How to strip all performer:instrument entries?](https://community.mp3tag.de/t/how-to-strip-all-performer-instrument-entries/64095)

---

<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: [April 14, 2024, 7:09am UTC](https://community.mp3tag.de/t/creating-an-action-plan-to-add-role-name/14764/7 "2024-04-14T07:09:38Z")

</div>

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