# Adding partial 'Composer' field into 'Title' field

**URL:** <https://community.mp3tag.de/t/adding-partial-composer-field-into-title-field/18727>\
**Category:** Support\
**Created:** [February 20, 2017, 11:27am UTC](https://community.mp3tag.de/t/adding-partial-composer-field-into-title-field/18727 "2017-02-20T11:27:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenny89](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/4da419/32.png) [@kenny89](https://community.mp3tag.de/u/kenny89)\
**Post date:** [February 20, 2017, 11:27am UTC](https://community.mp3tag.de/t/adding-partial-composer-field-into-title-field/18727/1 "2017-02-20T11:27:43Z")

</div>

Hi everyone,

I can't find any way to do this, I hope some advanced users could help me...  
Let's talk with examples.

My original file tags:  
**TITLE** : BWV 123  
**COMPOSER** : Bach (Johann Sebastian)

I want to add the "Composer" field inside the "Title" field, BUT keeping only the characters until the left parenthesis, putting a separation mark (like "/" for example).

So, the file title would become:  
**TITLE** : Bach/BWV 123

I tried the "FORMAT" action, but I can't find the right regular expression and scripting functions to do that...

Thanks!

---

<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:** [February 20, 2017, 11:39am UTC](https://community.mp3tag.de/t/adding-partial-composer-field-into-title-field/18727/2 "2017-02-20T11:39:30Z")

</div>

> [@kenny89](#):
>
> ...  
> **TITLE** : BWV 123  
> **COMPOSER** : Bach (Johann Sebastian)  
> ...  
> **TITLE** : Bach/BWV 123...

Create an action of the type "Format value" for TITLE  
Format string: $left(%composer%,$strstr(%composer%,' ('))/%title%

---

<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:** [February 20, 2017, 2:57pm UTC](https://community.mp3tag.de/t/adding-partial-composer-field-into-title-field/18727/3 "2017-02-20T14:57:12Z")

</div>

> [@kenny89](#):
>
> Hi everyone, ... I want to add the "Composer" field inside the "Title" field, BUT keeping only the characters until the left parenthesis, putting a separation mark (like "/" for example). ...

Here is another proposal using a regular expression.

**Action "Format value" Field: TITLE Format string: $regexp(%COMPOSER%'/'%TITLE%,' \(.+?\)/','/')**

DD.20170220.1656.CET

---

<div class="post-metadata">

**Author:** ![kenny89](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/4da419/32.png) [@kenny89](https://community.mp3tag.de/u/kenny89)\
**Post date:** [February 20, 2017, 3:38pm UTC](https://community.mp3tag.de/t/adding-partial-composer-field-into-title-field/18727/4 "2017-02-20T15:38:13Z")

</div>

> [@ohrenkino](#):
>
> ...  
> Format string: $left(%composer%,$strstr(%composer%,' ('))/%title%

> [@DetlevD](#):
>
> ...
> 
> Format string: $regexp(%COMPOSER%'/'%TITLE%,' \(.+?\)/','/')[/b]

It works with both string! Thank you guys! 🙂

Note: the ohrenkino answer leaves a blank space after Composer name before "/", so I had to $trim to make it disappear:

```
$trim($left(%composer%,$strstr(%composer%,' (')))/%artist%

```

Ehm... Just to make things more complex: is it possible to include in the TITLE tag not only the composer's surname ("Bach") but also his initials that are inside parenthesis?

Example:  
**COMPOSER** : Bach (Johann Sebastian)  
**TITLE** : Bach J.S./BWV 123

I know that it could be extreme, and I already reached my goal with your answers... so if it's too complicated, never mind. 😛

---

<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:** [February 20, 2017, 6:07pm UTC](https://community.mp3tag.de/t/adding-partial-composer-field-into-title-field/18727/5 "2017-02-20T18:07:55Z")

</div>

This works only for strings with 2 words in the brackets:

$left('Bach (Johann Sebastian)',$strstr('Bach (Johann Sebastian)',' ('))$regexp('Bach (Johann Sebastian)','._((.)._ (.).\*',$1. $2.)/BWV 123  
-\> "Bach J. S./BWV 123"

Replace all 'Bach (Johann Sebastian)' with %composer% and 'BWV 123' with %title%

---

<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/adding-partial-composer-field-into-title-field/18727/6 "2026-02-09T12:26:41Z")

</div>


