# Formatting title with Parentheses

**URL:** <https://community.mp3tag.de/t/formatting-title-with-parentheses/19233>\
**Category:** Support\
**Created:** [August 16, 2017, 5:40pm UTC](https://community.mp3tag.de/t/formatting-title-with-parentheses/19233 "2017-08-16T17:40:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![naykrupa](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/71c47a/32.png) [@naykrupa](https://community.mp3tag.de/u/naykrupa)\
**Post date:** [August 16, 2017, 5:40pm UTC](https://community.mp3tag.de/t/formatting-title-with-parentheses/19233/1 "2017-08-16T17:40:39Z")

</div>

1. If anyone can assist me in dealing with Parenthesis on mp3 file names.

Ex: Title: Summer of 69 (Bryan Adams) --\> Want to use TAG-\> TAG conversion to format the title to %title% and %artist% eliminating the parenthesis.

-\> I have tried Guess Value to no Avail. I want to do this via Reg Expression.

1. Also, Is there a simply way to simply trim the data from title and keep only the artist.

I am able to trim (Bryan Adams) from title & make it "Summer of 69" via:  
-\> Convert Tag To Tag: $regexp(%title%,'\s\*(.+?)',)

I want do to reverse. Any help would be appreciated.  
Thank you.

---

<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 16, 2017, 5:54pm UTC](https://community.mp3tag.de/t/formatting-title-with-parentheses/19233/2 "2017-08-16T17:54:00Z")

</div>

> [@mp3tag\_User](#):
>
> 1. If anyone can assist me in dealing with Parenthesis on mp3 file names.
> 
> Ex: Title: Summer of 69 (Bryan Adams) --\> Want to use TAG-\> TAG conversion to format the title to %title% and %artist% eliminating the parenthesis.
> 
> -\> I have tried Guess Value to no Avail. I want to do this via Reg Expression.
> 
> 1. Also, Is there a simply way to simply trim the data from title and keep only the artist.
> 
> I am able to trim (Bryan Adams) from title & make it "Summer of 69" via:  
> -\> Convert Tag To Tag: $regexp(%title%,'\s\*(.+?)',)

The Guess value action for TITLE with  
Guessing pattern %title% (%artist%)  
would be the easiest solution.  
You cannot put data into 2 separate fields with a regexp in one go.  
You can extract parts of the complete data first into one field, leaving the source unchanged and then remove the transferred data from the source.  
So it is at least 2 steps - which could be done in one step with the guess value action.

To get the artist from title with tag-tag select ARTIST as field  
Format string: $regexp(%title%,._((._)),$1)

---

<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:** [August 16, 2017, 6:38pm UTC](https://community.mp3tag.de/t/formatting-title-with-parentheses/19233/3 "2017-08-16T18:38:50Z")

</div>

> [@ohrenkino](#):
>
> To get the artist from title with tag-tag select ARTIST as field  
> Format string: $regexp(%title%,._((._)),$1)

.\*\((.\*)\) might be better replaced with .+?\((.\*?)\)(\s\*) in case there's more than one set of curly brackets. And replaced with $1$2.

Resulting in. **$regexp(%title%,.+?((._?))(\s_),$1$2)**

With the greedy method ._((._)), files like:

```
Title name (info1) other info (info2) other info (info3)
Title name (info1) other info (info2)
Title name (info1)

```

Will only extract:

```
info3
info2
info1

```

Whereas **$regexp(%title%,.+?((._?))(\s_),$1$2)**:

```
Title name (info1) other info (info2) other info (info3)
Title name (info1) other info (info2)
Title name (info1)

```

Will extract all info inside curly brackets with spaces:

```
info1 info2 info3
info1 info2
info1

```

Just another way to skin a cat.

---

<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/formatting-title-with-parentheses/19233/4 "2026-02-09T12:26:57Z")

</div>


