# Rename title with inside brackets

**URL:** https://community.mp3tag.de/t/rename-title-with-inside-brackets/67380
**Category:** Support
**Created:** [February 3, 2025, 3:02pm UTC](https://community.mp3tag.de/t/rename-title-with-inside-brackets/67380 "2025-02-03T15:02:36Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![djfrankjoy](https://community.mp3tag.de/user_avatar/community.mp3tag.de/djfrankjoy/32/14735_2.png) [@djfrankjoy](https://community.mp3tag.de/u/djfrankjoy)
#### Post date: [February 3, 2025, 3:02pm UTC](https://community.mp3tag.de/t/rename-title-with-inside-brackets/67380/1 "2025-02-03T15:02:36Z")

</div>

Hello everybody sorry tried to find examples but didnt find.  
i need a filter to rename the title with the inside of the brackets and without the brackets.  
before: all (all2)  
after: all2  
hope its understandable 🙃

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [February 3, 2025, 3:05pm UTC](https://community.mp3tag.de/t/rename-title-with-inside-brackets/67380/2 "2025-02-03T15:05:29Z")

</div>

> [@djfrankjoy](#):
>
> hope its understandable

Not yet...

A [Filter](https://docs.mp3tag.de/filter/) reduces the amount of listed files according to your filter content.

If you want to rename your TITLE, you need a Convert Tag -\> Tag or an Action.

Do you want to to replace the current content in TITLE with everything between the first round opening bracket `(` and the last round closing bracket `)` ?

---

<div class="post-metadata">

### Author: ![djfrankjoy](https://community.mp3tag.de/user_avatar/community.mp3tag.de/djfrankjoy/32/14735_2.png) [@djfrankjoy](https://community.mp3tag.de/u/djfrankjoy)
#### Post date: [February 3, 2025, 3:06pm UTC](https://community.mp3tag.de/t/rename-title-with-inside-brackets/67380/3 "2025-02-03T15:06:22Z")

</div>

yes in the brackets should give the title.  
of course filter is wrong

---

<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 3, 2025, 3:09pm UTC](https://community.mp3tag.de/t/rename-title-with-inside-brackets/67380/4 "2025-02-03T15:09:07Z")

</div>

> [@djfrankjoy](#):
>
> filter

%title% HAS "(" AND %title% HAS ")"

Modify title:  
Convert\>Tag-Tag for TITLE  
Format string: `$regexp(%title%,'.*\((.*)\)',$1)`

---

<div class="post-metadata">

### Author: ![djfrankjoy](https://community.mp3tag.de/user_avatar/community.mp3tag.de/djfrankjoy/32/14735_2.png) [@djfrankjoy](https://community.mp3tag.de/u/djfrankjoy)
#### Post date: [February 3, 2025, 3:18pm UTC](https://community.mp3tag.de/t/rename-title-with-inside-brackets/67380/5 "2025-02-03T15:18:21Z")

</div>

which comand i have to chose ?

 ![grafik](https://community.mp3tag.de/uploads/default/original/3X/c/c/cc8f6fa2c0488d1b34b1462cc76da7ec3e7b09ab.png)

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [February 3, 2025, 3:19pm UTC](https://community.mp3tag.de/t/rename-title-with-inside-brackets/67380/6 "2025-02-03T15:19:37Z")

</div>

Menu Convert and Tag -\> Tag.  
This way you see what this would produce immediately, before you execute the Format string.

As an Action it would be "Replace with regular expression"

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [February 3, 2025, 3:21pm UTC](https://community.mp3tag.de/t/rename-title-with-inside-brackets/67380/7 "2025-02-03T15:21:38Z")

</div>

As Format string I would suggest:  
~~`$regexp(%TITLE%,.?\((.*)\),$2)`~~  
To get everything between the first occuring bracket and last occuring bracket.

---

<div class="post-metadata">

### Author: ![djfrankjoy](https://community.mp3tag.de/user_avatar/community.mp3tag.de/djfrankjoy/32/14735_2.png) [@djfrankjoy](https://community.mp3tag.de/u/djfrankjoy)
#### Post date: [February 3, 2025, 3:21pm UTC](https://community.mp3tag.de/t/rename-title-with-inside-brackets/67380/8 "2025-02-03T15:21:44Z")

</div>

![grafik](https://community.mp3tag.de/uploads/default/original/3X/3/0/3048dc124662ce80648436e3c939b89ca4b5ff90.png)  
i did but seems not right or made a mistake

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [February 3, 2025, 3:23pm UTC](https://community.mp3tag.de/t/rename-title-with-inside-brackets/67380/9 "2025-02-03T15:23:22Z")

</div>

You mix different steps.

The Filter only reduces the list of possible candidates in all your loaded tracks.

For the reduced/filtered tracks you apply the Action.

The regular expression itself is the part  
`'.*\((.*)\)'`  
~~or~~  
~~`.?\((.*)\)`~~

 ![image](https://community.mp3tag.de/uploads/default/original/3X/8/f/8f1300e9053a9d0b655a63c8dc97b82957195a21.png)

@ohrenkino's syntax  
`$regexp(%title%,'.*\((.*)\)',$1)`  
is - as written - for Convert Tag -\> Tag

---

<div class="post-metadata">

### Author: ![djfrankjoy](https://community.mp3tag.de/user_avatar/community.mp3tag.de/djfrankjoy/32/14735_2.png) [@djfrankjoy](https://community.mp3tag.de/u/djfrankjoy)
#### Post date: [February 3, 2025, 3:32pm UTC](https://community.mp3tag.de/t/rename-title-with-inside-brackets/67380/10 "2025-02-03T15:32:03Z")

</div>

okay tagg tag with this  
`$regexp(%title%,'.*\((.*)\)',$1)`  
is working  
how do i get this to action ?

---

<div class="post-metadata">

### Author: ![djfrankjoy](https://community.mp3tag.de/user_avatar/community.mp3tag.de/djfrankjoy/32/14735_2.png) [@djfrankjoy](https://community.mp3tag.de/u/djfrankjoy)
#### Post date: [February 3, 2025, 3:34pm UTC](https://community.mp3tag.de/t/rename-title-with-inside-brackets/67380/11 "2025-02-03T15:34:11Z")

</div>

desnt work with this action

 ![grafik](https://community.mp3tag.de/uploads/default/original/3X/f/7/f7e10ab4fb16e32991c740ff92f5d0d87de3390d.png)

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [February 3, 2025, 3:34pm UTC](https://community.mp3tag.de/t/rename-title-with-inside-brackets/67380/12 "2025-02-03T15:34:45Z")

</div>

Please read [this answer](https://community.mp3tag.de/t/rename-title-with-inside-brackets/67380/9) again.

---

<div class="post-metadata">

### Author: ![djfrankjoy](https://community.mp3tag.de/user_avatar/community.mp3tag.de/djfrankjoy/32/14735_2.png) [@djfrankjoy](https://community.mp3tag.de/u/djfrankjoy)
#### Post date: [February 3, 2025, 3:39pm UTC](https://community.mp3tag.de/t/rename-title-with-inside-brackets/67380/13 "2025-02-03T15:39:42Z")

</div>

> [@LyricsLover](#):
>
> `.?\((.*)\)`

with that it gives back the outside of brackets

---

<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 3, 2025, 3:43pm UTC](https://community.mp3tag.de/t/rename-title-with-inside-brackets/67380/14 "2025-02-03T15:43:06Z")

</div>

Could you please show us what you entered in which action editor?  
Or: please copy the offered expressions thoroughly. Right now I have the impression that you left out a couple of vital characters.

---

<div class="post-metadata">

### Author: ![djfrankjoy](https://community.mp3tag.de/user_avatar/community.mp3tag.de/djfrankjoy/32/14735_2.png) [@djfrankjoy](https://community.mp3tag.de/u/djfrankjoy)
#### Post date: [February 3, 2025, 3:44pm UTC](https://community.mp3tag.de/t/rename-title-with-inside-brackets/67380/15 "2025-02-03T15:44:17Z")

</div>

![grafik](https://community.mp3tag.de/uploads/default/original/3X/6/7/67f69ebc26061dc5869153bfcd04989d6e86e2bf.png)

---

<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 3, 2025, 3:51pm UTC](https://community.mp3tag.de/t/rename-title-with-inside-brackets/67380/16 "2025-02-03T15:51:27Z")

</div>

Your "Treffer ersetzen durch": $2  
My suggestion: $1.

Also, I am pretty sure that it should be  
"Regulärer Ausdruck: `.*?\((.*)\)`

Just a hint: to debug regular expressions it is much easier to test them in Convert\>Tag-Tag and then copy the working format string to the corresponding action "Replace with regular expression" and distribute the 3 parts of the regular expression scripting command into the 3 objects of the action dialogue.  
That way you avoid to leave out characters or create an all new regular expression.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [February 3, 2025, 3:58pm UTC](https://community.mp3tag.de/t/rename-title-with-inside-brackets/67380/17 "2025-02-03T15:58:37Z")

</div>

> [@LyricsLover](#):
>
> Do you want to to replace the current content in TITLE with everything between the first round opening bracket `(` and the last round closing bracket `)` ?

> [@djfrankjoy](#):
>
> yes in the brackets should give the title.

You can use Convert Tag -\> Tag with  
Field:  
TITLE  
Format string:  
`$replace($regexp(%TITLE%,'(.*?)\s\((.+)\)',$2),'(',,')',)`

 ![image](https://community.mp3tag.de/uploads/default/original/3X/8/4/8407acc00020205df3df64dc456a6248831863b7.png)  
This would take the content between the first `(` bracket and the last `)` bracket and remove all the brackets between.

You get from  
`Evening News (Goin' In) (Feat. Quelle Chris)`  
to  
`Goin' In Feat. Quelle Chris`

And from  
`Tools Of The Game (Interlude) (ft Wallo) (prod Teeko)`  
to  
`Interlude ft Wallo prod Teeko`

If you insist to create an Action (without any preview) than you have to create two Actions in a Action Group.

---

<div class="post-metadata">

### Author: ![djfrankjoy](https://community.mp3tag.de/user_avatar/community.mp3tag.de/djfrankjoy/32/14735_2.png) [@djfrankjoy](https://community.mp3tag.de/u/djfrankjoy)
#### Post date: [February 3, 2025, 3:59pm UTC](https://community.mp3tag.de/t/rename-title-with-inside-brackets/67380/18 "2025-02-03T15:59:00Z")

</div>

yes now it works 👏 😉 👍

 ![grafik](https://community.mp3tag.de/uploads/default/original/3X/6/1/61ae48fc2a6f002ca996da20158aac8c70800dfc.png)

thank you very very much

---

<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: [March 5, 2025, 3:59pm UTC](https://community.mp3tag.de/t/rename-title-with-inside-brackets/67380/19 "2025-03-05T15:59:52Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
