# Title field format

**URL:** <https://community.mp3tag.de/t/title-field-format/19341>\
**Category:** Support\
**Created:** [September 10, 2017, 8:42pm UTC](https://community.mp3tag.de/t/title-field-format/19341 "2017-09-10T20:42:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tradingdj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@tradingdj](https://community.mp3tag.de/u/tradingdj)\
**Post date:** [September 10, 2017, 8:42pm UTC](https://community.mp3tag.de/t/title-field-format/19341/1 "2017-09-10T20:42:14Z")

</div>

Hi all,

I'm new to the board and to mp3tag and a complete illiterate when it comes to Regular Expressions so I can't figure this one out...even if it bit me

A lot of my files have this format:  
track - artist - title - mix.mp3  
or  
artist - title - mix.mp3

I'm trying to make them look like this:  
track - artist - title (mix).mp3

so, basically, I would like to replace the Title field that looks like this:  
title - mix  
and make it look like this:  
title (mix)

This is extremely basic and yet, I can't figure it out.  
Help Please?

Thanks for your help

---

<div class="post-metadata">

**Author:** ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)\
**Post date:** [September 10, 2017, 9:22pm UTC](https://community.mp3tag.de/t/title-field-format/19341/2 "2017-09-10T21:22:10Z")

</div>

> [@](#):
>
> so, basically, I would like to replace the Title field that looks like this:  
> title - mix  
> and make it look like this:  
> title (mix)

Seems you only want to work with the TITLE field so use this:

This will only work if the title contains one -  
Format action  
FIELD: TITLE  
FORMAT STR: $if($eql($regexp(%title%,'[^-]+',,),-),$regexp(%title%,(.+?)\s+-\s+(.+),$1 ($2)),%title%)

Which will result in (leaving more than one - chars in the TITLE field untouched):

```
Title - Mix
->
Title (Mix)

Title - Other Stuff - Mix
->
Title - Other Stuff - Mix

```

Or you could do this either:  
FIELD: TITLE  
FORMAT STR: $regexp(%title%,(.+)\s+-\s+(.+),$1 ($2))

Which will result in (using from the last - char):

```
Title - Mix
->
Title (Mix)

Title - Other Stuff - Mix
->
Title - Other Stuff (Mix)

```

EDIT: to fix **leaving more than two \> leaving more than one**

---

<div class="post-metadata">

**Author:** ![tradingdj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@tradingdj](https://community.mp3tag.de/u/tradingdj)\
**Post date:** [September 10, 2017, 10:19pm UTC](https://community.mp3tag.de/t/title-field-format/19341/3 "2017-09-10T22:19:06Z")

</div>

Very appreciated,

Works perfectly well,

Thank you

---

<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:27pm UTC](https://community.mp3tag.de/t/title-field-format/19341/4 "2026-02-09T12:27:00Z")

</div>


