# Deleting First Names From Artist Tag

**URL:** https://community.mp3tag.de/t/deleting-first-names-from-artist-tag/19242
**Category:** General Discussion
**Created:** [August 18, 2017, 6:58pm UTC](https://community.mp3tag.de/t/deleting-first-names-from-artist-tag/19242 "2017-08-18T18:58:22Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Mustang\_31](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/8e7dd6/32.png) [@Mustang\_31](https://community.mp3tag.de/u/Mustang_31)
#### Post date: [August 18, 2017, 6:58pm UTC](https://community.mp3tag.de/t/deleting-first-names-from-artist-tag/19242/1 "2017-08-18T18:58:22Z")

</div>

I'm wondering if someone could help me with this. I don't even know if it's possible but here it goes. I have artist tags with first and last names such as:

First Last, First Last, First Last & First Last

I am trying to make an action that would check if there is a comma in the artist tag and then get rid of all the first names so that it will be left with:

Last, Last, Last & Last

In this example there were 4 artists but there could any number of artists using the same comma separated format with the last artist being separated with an ampersand. Thanks in advance.

---

<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: [August 19, 2017, 6:42am UTC](https://community.mp3tag.de/t/deleting-first-names-from-artist-tag/19242/2 "2017-08-19T06:42:19Z")

</div>

> [@Mustang 31](#):
>
> ... I have artist tags with first and last names such as:  
> First Last, First Last, First Last & First Last  
> ... get rid of all the first names so that it will be left with:  
> Last, Last, Last & Last ...

Find inspiration there ...  
[/t/14169/1](https://community.mp3tag.de/t/14169/1)

**ARTIST\_NEW \<== $regexp(%ARTIST%,'([^ &,]+)\s([^ &,]+)','$2')**

From ... ARTIST = "Bing Crosby, Grace Kelly, Tim & Struppi & The Rolling Stones"  
To ... ARTIST\_NEW = "Crosby, Kelly, Tim & Struppi & Rolling Stones"

DD.20170819.1055.CEST

---

<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: [August 19, 2017, 7:53am UTC](https://community.mp3tag.de/t/deleting-first-names-from-artist-tag/19242/3 "2017-08-19T07:53:34Z")

</div>

> [@Mustang 31](#):
>
> ...First Last, First Last, First Last & First Last  
> ...  
> Last, Last, Last & Last..

Apart from the intellectual challenge: what does an actual use case look like?

Modify "Herbert von Karajan & Berliner Philharmoniker" to "von Karajan & Philharmoniker"?  
Go from "Johnny Clegg & Savuka" to "Clegg & Savuka"?  
"Diana Ross & The Supremes & The Temptations" to "Ross & Supremes & Temptations"?

That does not really look right to me.

---

<div class="post-metadata">

### Author: ![Mustang\_31](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/8e7dd6/32.png) [@Mustang\_31](https://community.mp3tag.de/u/Mustang_31)
#### Post date: [August 19, 2017, 7:17pm UTC](https://community.mp3tag.de/t/deleting-first-names-from-artist-tag/19242/4 "2017-08-19T19:17:29Z")

</div>

> [@DetlevD](#):
>
> Find inspiration there ...  
> [/t/14169/1](https://community.mp3tag.de/t/14169/1)
> 
> ARTIST\_NEW \<== $regexp(%ARTIST%,'([^ &,]+)\s([^ &,]+)','$2')
> 
> From ... ARTIST = "Bing Crosby, Grace Kelly, Tim & Struppi & The Rolling Stones"  
> To ... ARTIST\_NEW = "Crosby, Kelly, Tim & Struppi & Rolling Stones"
> 
> DD.20170819.1055.CEST

Thanks for that. I'll try it out and see how it goes.

---

<div class="post-metadata">

### Author: ![Mustang\_31](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/8e7dd6/32.png) [@Mustang\_31](https://community.mp3tag.de/u/Mustang_31)
#### Post date: [August 19, 2017, 7:20pm UTC](https://community.mp3tag.de/t/deleting-first-names-from-artist-tag/19242/5 "2017-08-19T19:20:28Z")

</div>

> [@ohrenkino](#):
>
> Apart from the intellectual challenge: what does an actual use case look like?
> 
> Modify "Herbert von Karajan & Berliner Philharmoniker" to "von Karajan & Philharmoniker"?  
> Go from "Johnny Clegg & Savuka" to "Clegg & Savuka"?  
> "Diana Ross & The Supremes & The Temptations" to "Ross & Supremes & Temptations"?
> 
> That does not really look right to me.

This is not so much for the tag itself but the filename. I'm trying to shorten the filenames of classical tracks but the actual artist tag will have the complete names.
