# Ersetze wenn Feld1 =x dann Feld2 =y

**URL:** https://community.mp3tag.de/t/ersetze-wenn-feld1-x-dann-feld2-y/17553
**Category:** Allgemein
**Created:** [January 15, 2016, 11:39am UTC](https://community.mp3tag.de/t/ersetze-wenn-feld1-x-dann-feld2-y/17553 "2016-01-15T11:39:03Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [January 15, 2016, 1:17pm UTC](https://community.mp3tag.de/t/ersetze-wenn-feld1-x-dann-feld2-y/17553/2 "2016-01-15T13:17:07Z")

</div>

> [@mbaa3](#):
>
> ... wenn %MIXARTIST% enthält "thomas mann" dann ersetze %LYRICIST% mit "Mann, T." ...

Hallo Manfred, hier erst einmal etwas Ähnliches zum Ausprobieren ...

**Vorname Nachname tauschen in Namenliste Von: COMPOSER = Pearl Jam, Neil Young Nach: COMPOSER = Jam, Pearl; Young, Neil $cutRight($regexp(%COMPOSER%', ','(.\*?) (\w\*), ','$2, $1; '),2) ... oder ... $trimRight($regexp(%COMPOSER%,'(.\*?) (\w\*)[,]\*','$2, $1; '),'; ') ... oder ... $trim($regexp(%COMPOSER%,'(.\*?) (\w\*)(?:, |$)','$2, $1; ')) ... oder ... $trim($regexp(%COMPOSER%,'(.\*?) (\w\*)[,]\*','$2, $1; '))**

Siehe auch ...  
[/t/11298/1](https://community.mp3tag.de/t/11298/1)

DD.20160115.1531.CET

---

_[View the full topic](https://community.mp3tag.de/t/ersetze-wenn-feld1-x-dann-feld2-y/17553)._
