# Automatiucally switch \[first name\] \[last name\] by script?

**URL:** https://community.mp3tag.de/t/automatiucally-switch-first-name-last-name-by-script/8885
**Category:** Support
**Created:** [September 2, 2009, 3:27pm UTC](https://community.mp3tag.de/t/automatiucally-switch-first-name-last-name-by-script/8885 "2009-09-02T15:27:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![deus62](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/d9b06d/32.png) [@deus62](https://community.mp3tag.de/u/deus62)
#### Post date: [September 2, 2009, 3:27pm UTC](https://community.mp3tag.de/t/automatiucally-switch-first-name-last-name-by-script/8885/1 "2009-09-02T15:27:21Z")

</div>

Hi everyone,

I have the following question.

I've ripped a huge multi-artist collection with over 100 CDs and want to automatically do the following:

1. In the artist tag field I have the following name: Marv[space]Johnson
2. I want to automatically, somehow, change this into: Johnson[comma][space]Marv
3. I have to do this for most of 1700 files, so some automatic process would be helpful.

Note: Most (but not all) artists are like this, so this should work (only) for all the selected files (and leave the ones that are different - not selected - untouched).

Is this at all possible?

Thanks for your help or any hints as to how I could go about doing this.

Since mp3tag can do just about everything but bring one's slippers to the bedroom in the mornings, I suspect there is a way?

deus62

---

<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: [September 2, 2009, 6:32pm UTC](https://community.mp3tag.de/t/automatiucally-switch-first-name-last-name-by-script/8885/2 "2009-09-02T18:32:06Z")

</div>

> [@deus62](#):
>
> ...
> 
> 1. In the artist tag field I have the following name: Marv[space]Johnson
> 2. I want to automatically, somehow, change this into: Johnson[comma][space]Marv  
> ...  
> Is this at all possible?

To answer your question: Yes.  
Read there:  
[Regular Expressions](https://community.mp3tag.de/t/521/6)

DD.20090902.2232.CEST

---

<div class="post-metadata">

### Author: ![deus62](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/d9b06d/32.png) [@deus62](https://community.mp3tag.de/u/deus62)
#### Post date: [September 3, 2009, 3:09am UTC](https://community.mp3tag.de/t/automatiucally-switch-first-name-last-name-by-script/8885/3 "2009-09-03T03:09:25Z")

</div>

> [@DetlevD](#):
>
> To answer your question: Yes.  
> Read there:  
> [Regular Expressions](https://community.mp3tag.de/t/521/6)
> 
> DD.20090902.2232.CEST

Thank you.  
Works perfectly.

🙂

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:21pm UTC](https://community.mp3tag.de/t/automatiucally-switch-first-name-last-name-by-script/8885/4 "2026-02-09T12:21:45Z")

</div>


