# Move THE to end of artist tag

**URL:** https://community.mp3tag.de/t/move-the-to-end-of-artist-tag/12769
**Category:** Support
**Created:** [December 2, 2011, 9:39am UTC](https://community.mp3tag.de/t/move-the-to-end-of-artist-tag/12769 "2011-12-02T09:39:39Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![flyingmale](https://community.mp3tag.de/user_avatar/community.mp3tag.de/flyingmale/32/8335_2.png) [@flyingmale](https://community.mp3tag.de/u/flyingmale)
#### Post date: [December 2, 2011, 9:39am UTC](https://community.mp3tag.de/t/move-the-to-end-of-artist-tag/12769/1 "2011-12-02T09:39:39Z")

</div>

First, thanks for this great software.  
I have searched the various topics but cannot find an answer for this...

I want to move all the word THE at the beginning of all ARTIST fields to become (The) at the end of the field.  
I can use the tool to change the case OK, but how do you move the word to the end of the ARTIST name?  
So becomes \<STONE ROSES (The)\>.

Many thanks

---

<div class="post-metadata">

### Author: ![JJ\_Johnson](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jj_johnson/32/67_2.png) [@JJ\_Johnson](https://community.mp3tag.de/u/JJ_Johnson)
#### Post date: [December 2, 2011, 5:20pm UTC](https://community.mp3tag.de/t/move-the-to-end-of-artist-tag/12769/2 "2011-12-02T17:20:21Z")

</div>

Use a 'Replace with regular expression' action.

_Action type:_ **Replace with regular expression**  
_Field:_ **ARTIST**  
_Regular expression:_ **^(the)\s(.+)$**  
_Replace matches with:_ **$2 ($1)**  
[] _case-sensitive comparison_

If you also want to treat other leading articles the same way, use a regular expression similar to this one. Add or remove articles as you like, separating them with a vertical bar (pipe) character:

**^(the|el|los|la|las|le|les)\s(.+)$**

---

<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: [December 2, 2011, 6:57pm UTC](https://community.mp3tag.de/t/move-the-to-end-of-artist-tag/12769/3 "2011-12-02T18:57:58Z")

</div>

> [@flyingmale](#):
>
> ... I can use the tool to change the case OK, but how do you move the word to the end of the ARTIST name?  
> So becomes \<STONE ROSES (The)\>. Many thanks

Set the Mp3tag Filter: **"$left(%ARTIST%,4)" IS "THE "**  
Note: The filter works case insensitive.

Action: Format value  
Field: ARTIST  
Formatstring: **$cutLeft(%ARTIST%,4)' (The)'**

From:  
THE STONE ROSES  
To:  
STONE ROSES (The)

DD.20111202.2059.CET  
Edit.DD.20111202.2136.CET

---

<div class="post-metadata">

### Author: ![JJ\_Johnson](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jj_johnson/32/67_2.png) [@JJ\_Johnson](https://community.mp3tag.de/u/JJ_Johnson)
#### Post date: [December 2, 2011, 7:18pm UTC](https://community.mp3tag.de/t/move-the-to-end-of-artist-tag/12769/4 "2011-12-02T19:18:17Z")

</div>

> [@](#):
>
> Action: Format value  
> Field: ARTIST  
> Formatstring: **$cutLeft(%ARTIST%,4)' (The)'**

I'd be very careful about doing it like this. You wouldn't want to run this on any names don't start with 'the'. The action that I listed in the first reply won't alter any artist name that doesn't start with 'the'. It also has the flexibility to work with other articles by using the second regex shown in the reply.

---

<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: [December 2, 2011, 7:38pm UTC](https://community.mp3tag.de/t/move-the-to-end-of-artist-tag/12769/5 "2011-12-02T19:38:31Z")

</div>

> [@JJ Johnson](#):
>
> I'd be very careful about doing it like this. You wouldn't want to run this on any names don't start with 'the'. The action that I listed in the first reply won't alter any artist name that doesn't start with 'the'. It also has the flexibility to work with other articles by using the second regex shown in the reply.

Yes, you are right, I've edit my post to make sure to apply the fitting filter as the first step.

DD.20111202.2140.CET

---

<div class="post-metadata">

### Author: ![flyingmale](https://community.mp3tag.de/user_avatar/community.mp3tag.de/flyingmale/32/8335_2.png) [@flyingmale](https://community.mp3tag.de/u/flyingmale)
#### Post date: [December 4, 2011, 2:16pm UTC](https://community.mp3tag.de/t/move-the-to-end-of-artist-tag/12769/6 "2011-12-04T14:16:04Z")

</div>

That worked well JJ Johnson, thank you very much

---

<div class="post-metadata">

### Author: ![grievousangel](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/a9a28c/32.png) [@grievousangel](https://community.mp3tag.de/u/grievousangel)
#### Post date: [March 28, 2017, 6:23pm UTC](https://community.mp3tag.de/t/move-the-to-end-of-artist-tag/12769/7 "2017-03-28T18:23:11Z")

</div>

Me too. Is this script put in one location or is it via several tool function?

I am new to the part of Mp3Tag.  
Thanks,

> [@flyingmale](#):
>
> First, thanks for this great software.  
> I have searched the various topics but cannot find an answer for this...
> 
> I want to move all the word THE at the beginning of all ARTIST fields to become (The) at the end of the field.  
> I can use the tool to change the case OK, but how do you move the word to the end of the ARTIST name?  
> So becomes \<STONE ROSES (The)\>.
> 
> Many 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: [March 29, 2017, 3:23am UTC](https://community.mp3tag.de/t/move-the-to-end-of-artist-tag/12769/8 "2017-03-29T03:23:59Z")

</div>

> [@GrievousAngel](#):
>
> ...I am new to the part of Mp3Tag.  
> Thanks,

See the FAQs on actions: [/t/967/1](https://community.mp3tag.de/t/967/1)

and also on your direct question:  
[Simple switch in the same field](https://community.mp3tag.de/t/18792/6)

---

<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:23pm UTC](https://community.mp3tag.de/t/move-the-to-end-of-artist-tag/12769/9 "2026-02-09T12:23:29Z")

</div>


