# invert name and surname?

**URL:** https://community.mp3tag.de/t/invert-name-and-surname/18485
**Category:** Support
**Created:** [December 3, 2016, 9:18pm UTC](https://community.mp3tag.de/t/invert-name-and-surname/18485 "2016-12-03T21:18:58Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Lauraq](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/b782af/32.png) [@Lauraq](https://community.mp3tag.de/u/Lauraq)
#### Post date: [December 3, 2016, 9:18pm UTC](https://community.mp3tag.de/t/invert-name-and-surname/18485/1 "2016-12-03T21:18:58Z")

</div>

Hi:)  
I have use the regex that I have find here

`$regexp(%artist%,(.*) (.*),$2',' $1)`

but don't work correclty becouse it add a "," for example

Bruce Springsteen

after the rename is

Springsteen, Bruce

Is possible delete the "," ?

Thanks 🙂

---

<div class="post-metadata">

### Author: ![Rijkstra](https://community.mp3tag.de/user_avatar/community.mp3tag.de/rijkstra/32/22_2.png) [@Rijkstra](https://community.mp3tag.de/u/Rijkstra)
#### Post date: [December 3, 2016, 10:59pm UTC](https://community.mp3tag.de/t/invert-name-and-surname/18485/2 "2016-12-03T22:59:08Z")

</div>

The quotes around the last comma are making it a literal. Try this:

`$regexp(%artist%,(.*) (.*),$2 $1)`

---

<div class="post-metadata">

### Author: ![Lauraq](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/b782af/32.png) [@Lauraq](https://community.mp3tag.de/u/Lauraq)
#### Post date: [December 4, 2016, 8:26am UTC](https://community.mp3tag.de/t/invert-name-and-surname/18485/3 "2016-12-04T08:26:03Z")

</div>

> [@Rijkstra](#):
>
> The quotes around the last comma are making it a literal. Try this:
> 
> $regexp(%artist%,(._) (._),$2 $1)

Fantastic, is perfect...THANKS 🙂

---

<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 4, 2016, 10:24am UTC](https://community.mp3tag.de/t/invert-name-and-surname/18485/4 "2016-12-04T10:24:00Z")

</div>

> [@Lauraq](#):
>
> Fantastic, is perfect...THANKS 🙂

Even though it is technically possible, I would not do it.  
See e.g. this thread: [/t/13887/1](https://community.mp3tag.de/t/13887/1)

---

<div class="post-metadata">

### Author: ![Lauraq](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/b782af/32.png) [@Lauraq](https://community.mp3tag.de/u/Lauraq)
#### Post date: [December 7, 2016, 5:52am UTC](https://community.mp3tag.de/t/invert-name-and-surname/18485/5 "2016-12-07T05:52:35Z")

</div>

> [@ohrenkino](#):
>
> Even though it is technically possible, I would not do it.  
> See e.g. this thread: [/t/13887/1](https://community.mp3tag.de/t/13887/1)

no problem for me, I have divided the singers in:

groups  
women singers  
male singers

😉

---

<div class="post-metadata">

### Author: ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)
#### Post date: [January 17, 2017, 12:58pm UTC](https://community.mp3tag.de/t/invert-name-and-surname/18485/6 "2017-01-17T12:58:31Z")

</div>

> [@Lauraq](#):
>
> no problem for me, I have divided the singers in:
> 
> groups  
> women singers  
> male singers
> 
> 😉

And what if it is the case of Marylin Manson: a male going by a stage name containing a female name [Marylin] and a last name of a man [Manson]

Or the case of the Florence And The Machine: a group led by a female singer Florence Welch?

Or the case of Trespassers William: a group with a female singer Anna-Lynne Williams?

Or the case of a female composer Wendy Carlos, who at the beginning of the career was a man with the name Walter Carlos?

I tag / store every artist alphabetically. So Ludvig van Beethoven is between K and M

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [December 3, 2019, 8:38am UTC](https://community.mp3tag.de/t/invert-name-and-surname/18485/7 "2019-12-03T08:38:52Z")

</div>


