# Conditionally Append ,The to %artist%

**URL:** <https://community.mp3tag.de/t/conditionally-append-the-to-artist/18445>\
**Category:** Support\
**Created:** [November 20, 2016, 5:46pm UTC](https://community.mp3tag.de/t/conditionally-append-the-to-artist/18445 "2016-11-20T17:46:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@scott](https://community.mp3tag.de/u/scott)\
**Post date:** [November 20, 2016, 5:46pm UTC](https://community.mp3tag.de/t/conditionally-append-the-to-artist/18445/1 "2016-11-20T17:46:17Z")

</div>

Hello, Need some scripting help please:

If %artist% begins with 'The' then delete 'The' and append ',The'

Example:

The Magic Tramps -\> Magic Tramps, The

---

<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:** [November 20, 2016, 6:00pm UTC](https://community.mp3tag.de/t/conditionally-append-the-to-artist/18445/2 "2016-11-20T18:00:54Z")

</div>

Try an action of the type "Replace with regular expression" for ARTIST  
Search string: The (.\*)  
Replace string: $1, The

Actually: I would not do it - as you always have to remember to do it once you have started it.  
And how many exceptions would you allow and why? My favourite example is the artist "The The". Why swap "the" with "the"?  
Or groups like "The Band", "The Avener", "The La's" and so on.  
Most players ignore articles anyway.  
What you could do, though: fill the field ARTISTSORT with the artist name without the article (if that is your preferred sorting). This would get the best of both worlds: an untempered artist's name and a consistent sorting.

---

<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:26pm UTC](https://community.mp3tag.de/t/conditionally-append-the-to-artist/18445/3 "2026-02-09T12:26:32Z")

</div>


