# Create A New Action to swap first name last name to last name, first name

**URL:** https://community.mp3tag.de/t/create-a-new-action-to-swap-first-name-last-name-to-last-name-first-name/66006
**Category:** Support
**Created:** [September 22, 2024, 4:28pm UTC](https://community.mp3tag.de/t/create-a-new-action-to-swap-first-name-last-name-to-last-name-first-name/66006 "2024-09-22T16:28:49Z")
**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: [September 22, 2024, 4:43pm UTC](https://community.mp3tag.de/t/create-a-new-action-to-swap-first-name-last-name-to-last-name-first-name/66006/2 "2024-09-22T16:43:03Z")

</div>

See e.g. 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):
>
> I have been using this Action to switch a simple First Name Last Name to Last Name, First Name: Replace with regular expression: Regular Expression ^([^,]+)\s([^,]+)$ Replace with: $2, $1 One reason why I use this is because it will not modify names already in the Last Name, First Name format. Ex: Brel, Jacques William remains Brel, Jacques William with the above action. How can I modify it to work with trailing words behind a first and last name? So Alton Ellis & The Lipsticks would beco…

---

_[View the full topic](https://community.mp3tag.de/t/create-a-new-action-to-swap-first-name-last-name-to-last-name-first-name/66006)._
