# Formatstring problem

**URL:** <https://community.mp3tag.de/t/formatstring-problem/19534>\
**Category:** Allgemein\
**Created:** [November 16, 2017, 8:34pm UTC](https://community.mp3tag.de/t/formatstring-problem/19534 "2017-11-16T20:34:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rico71](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/82dd89/32.png) [@Rico71](https://community.mp3tag.de/u/Rico71)\
**Post date:** [November 16, 2017, 8:34pm UTC](https://community.mp3tag.de/t/formatstring-problem/19534/1 "2017-11-16T20:34:30Z")

</div>

Hallo,  
ich benutze den Formatstring:  
c:\Musik$left(%albumartist%,1)\%albumartist%\%artist% - %year% - %album%\%track% - %artist% - %title%

funktioniert soweit ja gut, aber bei Bands wie z.b. The Clash verschiebt er die Songs in den Ordner:  
c:\Musik\T\The Clash...  
hätte aber gern die Songs in:  
c:\Musik\C\The Clash...  
verschoben. Ist es möglich "The" oder "Die" zu ignorieren, hoffe ihr könnt mir helfen.

mfg Rico

---

<div class="post-metadata">

**Author:** ![Ron\_Mark](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/c37758/32.png) [@Ron\_Mark](https://community.mp3tag.de/u/Ron_Mark)\
**Post date:** [November 16, 2017, 11:12pm UTC](https://community.mp3tag.de/t/formatstring-problem/19534/2 "2017-11-16T23:12:51Z")

</div>

What about just moving "The" to the end with something like...  
Replace with regular expression  
Field: %Artist%  
Reg Exp: The (.\*)  
Replace matches with: $1, The

Creates "Clash,The"

I have an action set up to do this to %Artist% and if desired %Albumartist% which works for my flow...

---

<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 17, 2017, 5:14am UTC](https://community.mp3tag.de/t/formatstring-problem/19534/3 "2017-11-17T05:14:07Z")

</div>

> [@Rico71](#):
>
> Hallo,  
> ich benutze den Formatstring:  
> c:\Musik$left(%albumartist%,1)\%albumartist%\%artist% - %year% - %album%\%track% - %artist% - %title%  
> ...

Versuch den Format String:  
c:\Musik$left($regexp(%albumartist%,^(The|Der|Die|Das) ,)1)\%albumartist%\%artist% - %year% - %album%\%track% - %artist% - %title%

---

<div class="post-metadata">

**Author:** ![Rico71](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/82dd89/32.png) [@Rico71](https://community.mp3tag.de/u/Rico71)\
**Post date:** [November 17, 2017, 4:28pm UTC](https://community.mp3tag.de/t/formatstring-problem/19534/4 "2017-11-17T16:28:40Z")

</div>

> [@ohrenkino](#):
>
> Versuch den Format String:  
> c:\Musik$left($regexp(%albumartist%,^(The|Der|Die|Das) ,)1)\%albumartist%\%artist% - %year% - %album%\%track% - %artist% - %title%

Hi, leider funktioniert der Format String nicht richtig, er verschiebt es nach:

c:\Musik\The Clash\The Clash - 1985 - Cut The Crap...

---

<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 17, 2017, 5:28pm UTC](https://community.mp3tag.de/t/formatstring-problem/19534/5 "2017-11-17T17:28:32Z")

</div>

> [@Rico71](#):
>
> Hi, leider funktioniert der Format String nicht richtig, er verschiebt es nach:
> 
> c:\Musik\The Clash\The Clash - 1985 - Cut The Crap...

Probier bitte noch mal dieses:  
c:\music$left($regexp(%albumartist%,^(The|Der|Die|Das) ,),1)\%albumartist%\%artist% - %year% - %album%\%track% - %artist% - %title%

---

<div class="post-metadata">

**Author:** ![Rico71](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/82dd89/32.png) [@Rico71](https://community.mp3tag.de/u/Rico71)\
**Post date:** [November 17, 2017, 5:51pm UTC](https://community.mp3tag.de/t/formatstring-problem/19534/6 "2017-11-17T17:51:01Z")

</div>

> [@ohrenkino](#):
>
> Probier bitte noch mal dieses:  
> c:\music$left($regexp(%albumartist%,^(The|Der|Die|Das) ,),1)\%albumartist%\%artist% - %year% - %album%\%track% - %artist% - %title%

Es klappt wunderbar. Danke für deine schnelle Antwort. 😃
