# Trying to remove a string from Title when using Filename - Tag option

**URL:** <https://community.mp3tag.de/t/trying-to-remove-a-string-from-title-when-using-filename-tag-option/58387>\
**Category:** Support\
**Created:** [September 1, 2022, 8:07pm UTC](https://community.mp3tag.de/t/trying-to-remove-a-string-from-title-when-using-filename-tag-option/58387 "2022-09-01T20:07:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nhenson22](https://community.mp3tag.de/user_avatar/community.mp3tag.de/nhenson22/32/12181_2.png) [@nhenson22](https://community.mp3tag.de/u/nhenson22)\
**Post date:** [September 1, 2022, 8:07pm UTC](https://community.mp3tag.de/t/trying-to-remove-a-string-from-title-when-using-filename-tag-option/58387/1 "2022-09-01T20:07:33Z")

</div>

Hi,

Hoping someone can help me, been going round in circles trying to figure out.

I have a bunch of files with the name format :  
Holiday [LNTG Muscle Mix] [45263224]

I am trying to use the Filename - Tag function to add a title for each file, ideally in the format :  
Holiday [LNTG Muscle Mix]

The closest I have got is by using the following :  
%title% [%title%] [%dummy%]  
which gives me the Title :  
Holiday LNTG Muscle Mix

Ideally, I would like to keep the square brackets around 'LNTG Muscle Mix'  
Anyone know if this is possible?

Many thanks for any help

---

<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:** [September 1, 2022, 8:15pm UTC](https://community.mp3tag.de/t/trying-to-remove-a-string-from-title-when-using-filename-tag-option/58387/2 "2022-09-01T20:15:09Z")

</div>

You could try  
`%title%] [%dummy%`  
to get at least the opening bracket.  
You could then add the closing bracket with  
Convert\>Tag-Tag for TITLE  
Format string: `%title%]`

If this is something that may happen to only some files, then you could filter for TITLEs with an opening but not closing bracket with:  
`%title% HAS [AND NOT %title% HAS]`

---

<div class="post-metadata">

**Author:** ![nhenson22](https://community.mp3tag.de/user_avatar/community.mp3tag.de/nhenson22/32/12181_2.png) [@nhenson22](https://community.mp3tag.de/u/nhenson22)\
**Post date:** [September 1, 2022, 8:34pm UTC](https://community.mp3tag.de/t/trying-to-remove-a-string-from-title-when-using-filename-tag-option/58387/3 "2022-09-01T20:34:47Z")

</div>

Thanks, this almost worked for me, but when adding the Format string : %title%], I get Invalid syntax response. Are square brackets not allowed here?

---

<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:** [September 1, 2022, 10:07pm UTC](https://community.mp3tag.de/t/trying-to-remove-a-string-from-title-when-using-filename-tag-option/58387/4 "2022-09-01T22:07:10Z")

</div>

You can try to escape the special char `]` with  
`%TITLE%']'`

From the [documentation](https://docs.mp3tag.de/format/#characters-with-special-functionality):

 ![image](https://community.mp3tag.de/uploads/default/original/2X/0/027d68fd898a6edc520aca0c402cd73d8cd9326b.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:** [September 2, 2022, 5:36am UTC](https://community.mp3tag.de/t/trying-to-remove-a-string-from-title-when-using-filename-tag-option/58387/5 "2022-09-02T05:36:11Z")

</div>

If you do not have to use the converter, you could also use an action of the type "Guess value"  
Source: `$regexp(%_filename%,'(.*) \[\d+\]',$1)`  
Target fields: `%title%`

---

<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:29pm UTC](https://community.mp3tag.de/t/trying-to-remove-a-string-from-title-when-using-filename-tag-option/58387/6 "2026-02-09T12:29:54Z")

</div>


