# Trimming Artist Field

**URL:** <https://community.mp3tag.de/t/trimming-artist-field/17107>\
**Category:** Support\
**Created:** [July 30, 2015, 5:17am UTC](https://community.mp3tag.de/t/trimming-artist-field/17107 "2015-07-30T05:17:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bertiepr](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/a9a28c/32.png) [@bertiepr](https://community.mp3tag.de/u/bertiepr)\
**Post date:** [July 30, 2015, 5:17am UTC](https://community.mp3tag.de/t/trimming-artist-field/17107/1 "2015-07-30T05:17:01Z")

</div>

Hi,

How do I move all after a comma (artist field) to the end of (title field) and inside a parenthesis?

Example:

FROM THIS: John Wayne, Allen Douglas Rmx - My song

```
TO THIS: John Wayne - My Song (Allen Douglas Rmx)

```

thank's in advance !!!

---

<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:** [July 30, 2015, 5:28am UTC](https://community.mp3tag.de/t/trimming-artist-field/17107/2 "2015-07-30T05:28:00Z")

</div>

So, ARTIST looks like this: John Wayne, Allen Douglas Rmx  
TITLE looks like this: My song

Result should be:  
ARTIST: John Wayne  
TITLE: My Song (Allen Douglas Rmx)  
is that right?

I think 3 steps are necessary:

1. Action of the type "Guess value" for ARTIST  
Guessing pattern: %artist%, %tmp\_field%  
-\> this moves the part following the comma to a user-defined field called TMP\_FIELD

2. action of the type "Format value" for TITLE  
Format string: %title% (%tmp\_field%)  
-\> this adds the contents of TMP\_FIELD to TITLE

3. action of the type "Remove tag field" for TMP\_FIELD  
this removes the temporary field as it is not needed any more.

---

<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 30, 2015, 6:45am UTC](https://community.mp3tag.de/t/trimming-artist-field/17107/3 "2015-07-30T06:45:22Z")

</div>

> [@bertiepr](#):
>
> Hi, How do I move all after a comma (artist field) to the end of (title field) and inside a parenthesis?  
> Example:  
> FROM THIS: John Wayne, Allen Douglas Rmx - My song
> 
> ```
> TO THIS: John Wayne - My Song (Allen Douglas Rmx)
> 
> ```

**Action "Format value" Field: ARTIST Formatstring: $regexp(%ARTIST%,'^(.+?), (.+?) - (.+?)$','$1 - $3 ($2)') ... or ... Formatstring: $regexp(%ARTIST%,'^(.+?), (.+?)( - .+?)$','$1$3 ($2)') From: 'John Wayne, Allen Douglas Rmx - My Song' To : 'John Wayne - My Song (Allen Douglas Rmx)'**

DD.20150730.1045.CEST

Ooops, ... this is not quite the solution for the given question.  
DD.20150730.1125.CEST

---

<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:** [July 30, 2015, 6:53am UTC](https://community.mp3tag.de/t/trimming-artist-field/17107/4 "2015-07-30T06:53:54Z")

</div>

does it really move parts of ARTIST to the end of TITLE as the OP requested if you only treat the ARTIST field?

> [@](#):
>
> ...move all after a comma (artist field) to the end of (title field) ...

---

<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 30, 2015, 7:29am UTC](https://community.mp3tag.de/t/trimming-artist-field/17107/5 "2015-07-30T07:29:27Z")

</div>

> [@ohrenkino](#):
>
> does it really move parts of ARTIST to the end of TITLE as the OP requested if you only treat the ARTIST field?

No, I was wrong in understanding the problem. Thank you.

DD.20150730.1129.CEST

---

<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 30, 2015, 8:54am UTC](https://community.mp3tag.de/t/trimming-artist-field/17107/6 "2015-07-30T08:54:44Z")

</div>

> [@bertiepr](#):
>
> Hi, How do I move all after a comma (artist field) to the end of (title field) and inside a parenthesis? Example:  
> FROM THIS: John Wayne, Allen Douglas Rmx - My song
> 
> ```
> TO THIS: John Wayne - My Song (Allen Douglas Rmx)
> 
> ```

**Swap trailing part from Artist to Title From ... ARTIST = 'John Wayne, Allen Douglas Rmx' TITLE = 'My song' To ... ARTIST = 'John Wayne' TITLE = 'My Song (Allen Douglas Rmx)' Proposal 1 1. Action "Guess values" Source format ..: %ARTIST% Guessing pattern: %ARTIST%, %TEMP% 2. Action "Format values" Field ......: TITLE Formatstring: %TITLE%' ('%TEMP%')' 3. Action "Remove fields" Fields: TEMP Proposal 2 1. Action "Guess values" Source format ..: %ARTIST% Guessing pattern: %ARTIST%, %TEMP% 2. Action "Guess values" Source format ..: %TITLE%' ('%TEMP%')===' Guessing pattern: %TITLE%===%TEMP% Proposal 3 Action "Guess values" Source format ..: $replace(%ARTIST%,', ','==='%TITLE%' (')')' Guessing pattern: %ARTIST%===%TITLE% Proposal 4 1. Action "Format value" Field ......: TITLE Formatstring: %TITLE%' ('$regexp(%ARTIST%,'^.+?, ',)')' 2. Action "Format value" Field ......: ARTIST Formatstring: $regexp(%ARTIST%,',.+?$',)**

DD.20150730.1329.CEST

---

<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:25pm UTC](https://community.mp3tag.de/t/trimming-artist-field/17107/7 "2026-02-09T12:25:47Z")

</div>

Closed on February 9, 2026, 12:25pm UTC


