# Switching first and last names in fields with multiple artists/soloists

**URL:** https://community.mp3tag.de/t/switching-first-and-last-names-in-fields-with-multiple-artists-soloists/18705
**Category:** Support
**Created:** [February 14, 2017, 9:12am UTC](https://community.mp3tag.de/t/switching-first-and-last-names-in-fields-with-multiple-artists-soloists/18705 "2017-02-14T09:12:04Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [February 14, 2017, 11:42am UTC](https://community.mp3tag.de/t/switching-first-and-last-names-in-fields-with-multiple-artists-soloists/18705/3 "2017-02-14T11:42:57Z")

</div>

> [@kosmonaut\_75](#):
>
> Hi, I cannot find any existing thread for the following situation: I would like to switch first and last names of the soloists in my classical music collection. ... for album with multiple soloists in the soloist field like "Rolando Villazon\\Anna Netrebko\\Bryn Terfel" ...

Find something useful there ...  
[Need help with regex for ARTISTSORT](https://community.mp3tag.de/t/12653/1)  
[Multiple value artist tag to multiple value artistsort](https://community.mp3tag.de/t/12599/1)  
[/t/17090/1](https://community.mp3tag.de/t/17090/1)

Try this ...

 

From: SOLOIST = 'Rolando Villazon\\Anna Netrebko\\Bryn Terfel'  
To : TEST = 'Villazon, Rolando\\Netrebko, Anna\\Terfel, Bryn'

 **TEST \<== $trimRight($regexp($meta\_sep(SOLOIST,';')';','(.+?) (.+?);','$2, $1\\\\'),'\')** 

DD.20170214.1422.CET

---

_[View the full topic](https://community.mp3tag.de/t/switching-first-and-last-names-in-fields-with-multiple-artists-soloists/18705)._
