# Add space to, swap Lastname,Firstname

**URL:** https://community.mp3tag.de/t/add-space-to-swap-lastname-firstname/3483
**Category:** Support
**Created:** [June 22, 2006, 9:23pm UTC](https://community.mp3tag.de/t/add-space-to-swap-lastname-firstname/3483 "2006-06-22T21:23:14Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [June 23, 2006, 2:26am UTC](https://community.mp3tag.de/t/add-space-to-swap-lastname-firstname/3483/2 "2006-06-23T02:26:52Z")

</div>

> [@tineg](#):
>
> Hi,  
> In the artist field, when the artists name is in the form "lastname,firstname" , how do I....  
> -separate the two names/add a space  
> -remove the comma and  
> -swap the last and first names?  
> Thank-you in advance if anyone can be of help.

If you have a field: lastname,firstname  
or something like this: lastname , firstname  
and want it to be: firstname lastname  
you may create an Action with the following properties:  
Field: your\_fieldname  
Regular Expression: `(.*),(.*)`  
Replace matches with: `$trim($2) $trim($1)`  
DD.20060623.0625

---

_[View the full topic](https://community.mp3tag.de/t/add-space-to-swap-lastname-firstname/3483)._
