# Aktion mit Formatstring erbringt unterschiedlichste Ergebnisse

**URL:** <https://community.mp3tag.de/t/aktion-mit-formatstring-erbringt-unterschiedlichste-ergebnisse/13694>\
**Category:** Allgemein\
**Created:** [July 27, 2012, 2:59pm UTC](https://community.mp3tag.de/t/aktion-mit-formatstring-erbringt-unterschiedlichste-ergebnisse/13694 "2012-07-27T14:59:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DJ\_Mucke](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dj_mucke/32/224_2.png) [@DJ\_Mucke](https://community.mp3tag.de/u/DJ_Mucke)\
**Post date:** [July 27, 2012, 2:59pm UTC](https://community.mp3tag.de/t/aktion-mit-formatstring-erbringt-unterschiedlichste-ergebnisse/13694/1 "2012-07-27T14:59:19Z")

</div>

Aktion mit Formatstring erbringt unterschiedlichste Ergebnisse  
sofern der Titel mit oder ohne Klammerpaar besteht, siehe Bild: 😳

 ![](https://community.mp3tag.de/uploads/default/original/1X/c23fbcca6bfe9974d8aa08ea554ebc3772f3e6b8.JPG)  

Wo liegt im zweiten F.string der Fehler?

Zum rekonstruieren, anbei die beiden Formatstrings.  
[Artist\_\_\_ndern\_\_pres.\_\_2.mta](https://community.mp3tag.de/uploads/default/original/1X/993ce866d073cfcf16822320073c3725e78559ae.mta) (243 Bytes)[Artist\_\_\_ndern\_\_pres.\_\_3.mta](https://community.mp3tag.de/uploads/default/original/1X/a9cd127bd0251b6d05eef70b02c9983f25288220.mta) (299 Bytes)

Vorab Danke ![:rolleyes:](https://community.mp3tag.de/uploads/default/original/1X/3a79e8b0b7d169b30216785521d7c6f4f895c421.gif ":rolleyes:") der Hilfe durch euch... ![:w00t:](https://community.mp3tag.de/uploads/default/original/1X/cb01eca72fe9339ff6f3ec9f1e3c5fe002be0f0a.gif ":w00t:") 

 ![](https://community.mp3tag.de/uploads/default/original/1X/c23fbcca6bfe9974d8aa08ea554ebc3772f3e6b8.JPG)  

[Artist\_\_\_ndern\_\_pres.\_\_2.mta](https://community.mp3tag.de/uploads/default/original/1X/993ce866d073cfcf16822320073c3725e78559ae.mta) (243 Bytes)

[Artist\_\_\_ndern\_\_pres.\_\_3.mta](https://community.mp3tag.de/uploads/default/original/1X/a9cd127bd0251b6d05eef70b02c9983f25288220.mta) (299 Bytes)

---

<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:** [July 28, 2012, 6:19am UTC](https://community.mp3tag.de/t/aktion-mit-formatstring-erbringt-unterschiedlichste-ergebnisse/13694/2 "2012-07-28T06:19:38Z")

</div>

> [@DJ Mucke](#):
>
> ... Wo ... Fehler? ...

Vorher:  
ARTIST = "M&S Presents The Girl Next Door"  
TITLE = "Salsoul Nugget ( M&S Original Klub Radio )"

Nachher:  
ARTIST = "M&S"  
TITLE = "Salsoul Nugget ( M&S Original Klub Radio ) ( pres. The Girl Next Door )"

Filter: **ARTIST MATCHES "^.+?\s(?:präsentiert|presents|pr[eä]s.?)\s.+?$"**

Aktion: Tag-Feld formatieren  
Feld: TITLE  
Formatstring: **%TITLE%$regexp(%ARTIST%,'^.+?\s(?:präsentiert|presents|pr[eä]s.?)\s(.+?)$',' ( pres. $1 )',1)**

Aktion: Tag-Feld formatieren  
Feld: ARTIST  
Formatstring: **$regexp(%ARTIST%,'^(.+?)\s(?:präsentiert|presents|pr[eä]s.?)\s.+?$','$1',1)**

DD.20120728.1024.CEST

---

<div class="post-metadata">

**Author:** ![DJ\_Mucke](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dj_mucke/32/224_2.png) [@DJ\_Mucke](https://community.mp3tag.de/u/DJ_Mucke)\
**Post date:** [July 29, 2012, 1:11pm UTC](https://community.mp3tag.de/t/aktion-mit-formatstring-erbringt-unterschiedlichste-ergebnisse/13694/3 "2012-07-29T13:11:57Z")

</div>

> [@DetlevD](#):
>
> Vorher:  
> ARTIST = "M&S Presents The Girl Next Door"  
> TITLE = "Salsoul Nugget ( M&S Original Klub Radio )"  
> Nachher:  
> TITLE = "Salsoul Nugget ( M&S Original Klub Radio ) ( pres. The Girl Next Door )"

Klappt wunderbar.

Nur was mich stutzig macht ist, das die o.g.v.m. mit allen Variationen von featuring, alle Fälle sei es **(**; **[** oder **{** abdeckt!

Wiedermal THX DetlevD _God for RegEx & Strings_
