# Swapping Name and Surname and shorten Name

**URL:** https://community.mp3tag.de/t/swapping-name-and-surname-and-shorten-name/68117
**Category:** Support
**Created:** [April 6, 2025, 9:22am UTC](https://community.mp3tag.de/t/swapping-name-and-surname-and-shorten-name/68117 "2025-04-06T09:22:51Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [April 6, 2025, 9:27am UTC](https://community.mp3tag.de/t/swapping-name-and-surname-and-shorten-name/68117/2 "2025-04-06T09:27:49Z")

</div>

Try an action of the type "Format value" or Convert\>Tag-Tag:  
Format string: `$regexp('Carlos Almada',(.).* (.*),'$2 $1.')`

and see also here:

> [@First Name Last Name with any frailing words to Last Name, First Name and Trailing words](https://community.mp3tag.de/t/first-name-last-name-with-any-frailing-words-to-last-name-first-name-and-trailing-words/59734/2):
>
> Didn't you participate in a thread that deals more or less with the problem of lists with a slash in them? And to be honest: the swapping of names ... does it really make sense? There are so many exceptions that the swapped names in the end do not ease the access to the artist. Any decent player will search for artist name parts so it does not matter which structure the name has. In which field do you want to swap the names? I hope, only in the ~SORT fields as otherwise it will become a str…

---

_[View the full topic](https://community.mp3tag.de/t/swapping-name-and-surname-and-shorten-name/68117)._
