# How tp Change Firstname and Surname

**URL:** https://community.mp3tag.de/t/how-tp-change-firstname-and-surname/7518
**Category:** Support
**Created:** [November 24, 2008, 5:01pm UTC](https://community.mp3tag.de/t/how-tp-change-firstname-and-surname/7518 "2008-11-24T17:01:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Piton](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/6bbea6/32.png) [@Piton](https://community.mp3tag.de/u/Piton)
#### Post date: [November 24, 2008, 5:01pm UTC](https://community.mp3tag.de/t/how-tp-change-firstname-and-surname/7518/1 "2008-11-24T17:01:21Z")

</div>

The Problem is as follows

The Artist name is given as

Peter Gabriel or Fela Kuti & the Africa 70

I want it to be changed into

Gabriel, Peter or Kuti, Fela & the Arica 70

How can I do this ?

Thanks for any help

* * *

Piton

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [November 24, 2008, 5:38pm UTC](https://community.mp3tag.de/t/how-tp-change-firstname-and-surname/7518/2 "2008-11-24T17:38:56Z")

</div>

You can use a group of actions like following.

Begin Actionsgroup **TEST**

Action #1  
_Actiontype 5:_ **Format tag field**  
_Field:_ **ARTIST\_1**  
_Formatstring:_ **$regexp(%artist%,^(.+?)\s+or\s+(.+?)\s+&\s+(.+?)$,$1)**

Action #2  
_Actiontype 5:_ **Format tag field**  
_Field:_ **ARTIST\_2**  
_Formatstring:_ **$regexp(%artist%,^(.+?)\s+or\s+(.+?)\s+&\s+(.+?)$,$2)**

Action #3  
_Actiontype 5:_ **Format tag field**  
_Field:_ **ARTIST\_3**  
_Formatstring:_ **$regexp(%artist%,^(.+?)\s+or\s+(.+?)\s+&\s+(.+?)$,$3)**

Action #4  
_Actiontype 5:_ **Format tag field**  
_Field:_ **ARTIST\_1**  
_Formatstring:_ **$regexp(%artist\_1%,^(.+?)\s+(.+?)$,$2',÷'$1)**

Action #5  
_Actiontype 5:_ **Format tag field**  
_Field:_ **ARTIST\_2**  
_Formatstring:_ **$regexp(%artist\_2%,^(.+?)\s+(.+?)$,$2',÷'$1)**

Action #6  
_Actiontype 5:_ **Format tag field**  
_Field:_ **ARTIST**  
_Formatstring:_ **%artist\_1%÷or÷%artist\_2%÷&÷%artist\_3%**

Action #7  
_Actiontype 9:_ **Remove fields**  
_Fields to remove (semicolon separated):_ **artist\_1;artist\_2;artist\_3**

Note: Replace one special character ÷ with one space character.  
End Actionsgroup **TEST** (7 Actions)

From: **Peter Gabriel or Fela Kuti & the Africa 70**

To: **Gabriel, Peter or Kuti, Fela & the Africa 70**

DD.20081124.1938.CET

---

<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: [February 9, 2026, 12:21pm UTC](https://community.mp3tag.de/t/how-tp-change-firstname-and-surname/7518/3 "2026-02-09T12:21:13Z")

</div>


