# Filename -\> Tag with brackets

**URL:** https://community.mp3tag.de/t/filename-tag-with-brackets/1600
**Category:** Support
**Created:** [January 6, 2005, 8:55am UTC](https://community.mp3tag.de/t/filename-tag-with-brackets/1600 "2005-01-06T08:55:23Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Le\_Chat](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/97f17d/32.png) [@Le\_Chat](https://community.mp3tag.de/u/Le_Chat)
#### Post date: [January 6, 2005, 8:55am UTC](https://community.mp3tag.de/t/filename-tag-with-brackets/1600/1 "2005-01-06T08:55:23Z")

</div>

Hi,  
First, thanks to the developers for this soft, which I find quite useful...  
Well, here's my problem: I've set up the Filename to tag conversion to  
%artist% - %title% (%comment%)

The problem is that many files don't have any brackets, which are mainly used for remixes etc. In the latter case, no tag editing is done, not even for the 'artist' and 'title' fields. I thought about appending '()' after every filename, but I don't want to if a file already contains a remix name, that is non-empty brackets.  
Anyone has an idea how to solve that? _\_\__"

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [January 6, 2005, 9:21am UTC](https://community.mp3tag.de/t/filename-tag-with-brackets/1600/2 "2005-01-06T09:21:13Z")

</div>

You can try to use only:  
%artist% - %title%  
for Filename-Tag  
and then use an Action with "Guess Value"  
enter in the 2 fields:  
%title%  
%title% (%comment%)

if there is (...) text in the title, it will put the (...) in the comment field and remove it from title.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 6, 2005, 9:26am UTC](https://community.mp3tag.de/t/filename-tag-with-brackets/1600/3 "2005-01-06T09:26:43Z")

</div>

Hi,

I think you can use Mp3tag's filter feature for finding all files with brackets.

First enable the filter bar using View, Filter... or by pressing [F3].

To find all files with an filename ending with a closed bracket choose **\_FILENAME** as field and use the following regular expression )..{3}$

To filter out all the files which are ending with a closing bracket just use this regular expression [^)]..{3}

_ **Edit** _: dano was faster and came up with a nicer solution 😃

Best regards,  
~ Florian

---

<div class="post-metadata">

### Author: ![Le\_Chat](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/97f17d/32.png) [@Le\_Chat](https://community.mp3tag.de/u/Le_Chat)
#### Post date: [January 6, 2005, 10:06am UTC](https://community.mp3tag.de/t/filename-tag-with-brackets/1600/4 "2005-01-06T10:06:53Z")

</div>

Both of you are fast! 🙂

1. I've just tried dano's solution, it works, but the 'title' field is left with the brackets (and what's in between)...  
So what I think I could do after that is to erase the brackets expression in 'title' field using 'Replace', but I don't know the syntax for "anything". I've tried with the star character, but didn't work... Basically, I want to replace ("anything") by "nothing".

2. I have another question for you guys 😛 : how can I transform the filename  
Frankie Feliciano - The real thing(Ricanstruction edit).mp3  
into  
Frankie Feliciano - The real thing (Ricanstruction edit).mp3  
?Here again, I've unsuccesfully tried to Replace "\_ALL": "\*(" -\> " (".

3. Same thing to transform  
Frankie Feliciano - The real thing (Ricanstruction edit) .mp3  
into  
Frankie Feliciano - The real thing (Ricanstruction edit).mp3  
Replace "\_ALL": " .mp3" -\> ".mp3" doesn't seem to work either.

Thanks a lot!

---

<div class="post-metadata">

### Author: ![Sebastian\_Mares](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sebastian_mares/32/9285_2.png) [@Sebastian\_Mares](https://community.mp3tag.de/u/Sebastian_Mares)
#### Post date: [January 6, 2005, 10:21am UTC](https://community.mp3tag.de/t/filename-tag-with-brackets/1600/5 "2005-01-06T10:21:36Z")

</div>

> [@](#):
>
> 1. I have another question for you guys 😛 : how can I transform the filename  
> Frankie Feliciano - The real thing(Ricanstruction edit).mp3  
> into  
> Frankie Feliciano - The real thing (Ricanstruction edit).mp3  
> ?Here again, I've unsuccesfully tried to Replace "\_ALL": "\*(" -\> " (".
> 
> \<{POST\_SNAPBACK}\>

I think replacing

```
([^])\(

```

with

```
$1 (

```

should work.

> [@](#):
>
> 1. Same thing to transform  
> Frankie Feliciano - The real thing (Ricanstruction edit) .mp3  
> into  
> Frankie Feliciano - The real thing (Ricanstruction edit).mp3  
> Replace "\_ALL": " .mp3" -\> ".mp3" doesn't seem to work either.
> 
> \<{POST\_SNAPBACK}\>

Replace

```
\s*\.

```

with

```
.

```

Regards  
Sebastian

---

<div class="post-metadata">

### Author: ![Le\_Chat](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/97f17d/32.png) [@Le\_Chat](https://community.mp3tag.de/u/Le_Chat)
#### Post date: [January 6, 2005, 10:42am UTC](https://community.mp3tag.de/t/filename-tag-with-brackets/1600/6 "2005-01-06T10:42:40Z")

</div>

Both do not work :'  
I'm off to bed... almost 7 am O\_o"... not really reasonable when you got class the day after... well... the same day... Anyways, I'll be back soon, thanks for all.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 6, 2005, 11:25am UTC](https://community.mp3tag.de/t/filename-tag-with-brackets/1600/7 "2005-01-06T11:25:59Z")

</div>

Both Regular Expressions Sebastian suggested are working fine here (I've used **\_FILENAME** as field, but this doesn't matter).

Please be a little more specific and describe what isn't working and what are your results.

~ Florian

---

<div class="post-metadata">

### Author: ![Le\_Chat](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/97f17d/32.png) [@Le\_Chat](https://community.mp3tag.de/u/Le_Chat)
#### Post date: [January 6, 2005, 4:38pm UTC](https://community.mp3tag.de/t/filename-tag-with-brackets/1600/8 "2005-01-06T16:38:46Z")

</div>

My fault!  
I didn't choose "Regular Expression" but a simple "Replace"...  
Concerning the former problem (comments and brackets), I'll use Florian's suggestion.  
Now that everything works fine, I just can thank you guys! See you... 🙂

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 6, 2005, 5:52pm UTC](https://community.mp3tag.de/t/filename-tag-with-brackets/1600/9 "2005-01-06T17:52:34Z")

</div>

If you use the action type Guess value instead of Format value which was introduced with the current [Development Build](http://developer.mp3tag.de), dano's suggestion will work too.

Best regards,  
~ Florian

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [January 6, 2005, 6:42pm UTC](https://community.mp3tag.de/t/filename-tag-with-brackets/1600/10 "2005-01-06T18:42:08Z")

</div>

Damn i meant "Guess Value" ofc. 😲

---

<div class="post-metadata">

### Author: ![Le\_Chat](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/97f17d/32.png) [@Le\_Chat](https://community.mp3tag.de/u/Le_Chat)
#### Post date: [January 6, 2005, 8:41pm UTC](https://community.mp3tag.de/t/filename-tag-with-brackets/1600/11 "2005-01-06T20:41:50Z")

</div>

You right 😃

---

<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: [November 12, 2025, 3:11pm UTC](https://community.mp3tag.de/t/filename-tag-with-brackets/1600/12 "2025-11-12T15:11:19Z")

</div>

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