# Compilations and modified titles to include artist in brackets

**URL:** https://community.mp3tag.de/t/compilations-and-modified-titles-to-include-artist-in-brackets/49850
**Category:** Support
**Created:** [August 7, 2020, 9:49pm UTC](https://community.mp3tag.de/t/compilations-and-modified-titles-to-include-artist-in-brackets/49850 "2020-08-07T21:49:47Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![sheepdisease](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@sheepdisease](https://community.mp3tag.de/u/sheepdisease)
#### Post date: [August 7, 2020, 9:49pm UTC](https://community.mp3tag.de/t/compilations-and-modified-titles-to-include-artist-in-brackets/49850/1 "2020-08-07T21:49:48Z")

</div>

Hello there, could someone please tell me the regex to get this working? I know this isn't quite right.

Format value  
Field: Title  
Format string: $replace(%TITLE% (%ARTIST),'[','(',']',')')

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: [August 8, 2020, 7:48am UTC](https://community.mp3tag.de/t/compilations-and-modified-titles-to-include-artist-in-brackets/49850/2 "2020-08-08T07:48:27Z")

</div>

This is roughly handled in the Howtos:

> [@Actions and batch-operations](https://community.mp3tag.de/t/actions-and-batch-operations/967/5):
>
> How to append the string " xyz" to the content of a tag field? Create a [new action](https://community.mp3tag.de/t/actions/967/2) in an existing action group and choose Format value as action type. Field specifies the tag field the formatting rule should be applied to. Format string must have the field placeholder for the field selected above and the string which should be appended. Example: If you want to append the string " xyz" to the current value of the comment field: Action type: Format value Field: COMMENT Format string: %com…

In your case, I guess,  
Action of the type "Format value" for TITLE  
Format string: `%title% (%artist%)`  
Or give an example of what the string looks like before and what it should look like after the treatment.

---

<div class="post-metadata">

### Author: ![sheepdisease](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@sheepdisease](https://community.mp3tag.de/u/sheepdisease)
#### Post date: [August 8, 2020, 8:35am UTC](https://community.mp3tag.de/t/compilations-and-modified-titles-to-include-artist-in-brackets/49850/3 "2020-08-08T08:35:01Z")

</div>

Thanks for your reply. It should also be converting square brackets to round.

---

<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: [August 8, 2020, 8:47am UTC](https://community.mp3tag.de/t/compilations-and-modified-titles-to-include-artist-in-brackets/49850/4 "2020-08-08T08:47:31Z")

</div>

> [@sheepdisease](#):
>
> It should also be converting square brackets to round.

Where would the square brackets appear?  
I take it that you have a title field where you want to add the contents of ARTIST in round brackets.  
I doubt that either TITLE or ARTIST is already enclosed in square brackets.  
So if you add brackets with

> [@ohrenkino](#):
>
> Format string: `%title% (%artist%)`

then you have the full control which brackets should be added and no further replacement is necessary.

---

<div class="post-metadata">

### Author: ![sheepdisease](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@sheepdisease](https://community.mp3tag.de/u/sheepdisease)
#### Post date: [August 9, 2020, 1:46pm UTC](https://community.mp3tag.de/t/compilations-and-modified-titles-to-include-artist-in-brackets/49850/5 "2020-08-09T13:46:11Z")

</div>

Thanks, there are times when square brackets are present and they need to be replaced with round brackets and it's not always in relation to the artist.

---

<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: [August 9, 2020, 2:03pm UTC](https://community.mp3tag.de/t/compilations-and-modified-titles-to-include-artist-in-brackets/49850/6 "2020-08-09T14:03:29Z")

</div>

Then i would consider to think about a different separator between the artist and the title, e.g. the underscore. Otherwise it will become rather tricky to "know" which brackets enclose the artist and which don't.

---

<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:28pm UTC](https://community.mp3tag.de/t/compilations-and-modified-titles-to-include-artist-in-brackets/49850/7 "2026-02-09T12:28:45Z")

</div>


