# Removing \[\] characters in filename - Regular expression?

**URL:** <https://community.mp3tag.de/t/removing-characters-in-filename-regular-expression/42446>\
**Category:** Support\
**Created:** [July 24, 2018, 11:51am UTC](https://community.mp3tag.de/t/removing-characters-in-filename-regular-expression/42446 "2018-07-24T11:51:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kappclark](https://community.mp3tag.de/user_avatar/community.mp3tag.de/kappclark/32/5321_2.png) [@kappclark](https://community.mp3tag.de/u/kappclark)\
**Post date:** [July 24, 2018, 11:51am UTC](https://community.mp3tag.de/t/removing-characters-in-filename-regular-expression/42446/1 "2018-07-24T11:51:06Z")

</div>

I have files ending with [] characters ... string length is not fixed, and sometimes there is more than one set..

For Example:

Simon & Garfunkel - Feuilles-O [Demo Version] [C4].mp3

What I would like to do is eliminate all brackets and what is contained in them...basically a "normal" filename in format Artist - Title. I have searched the forum, and I think I need to use Action involving a regular expression, but am unsure of the syntax for regular expression .. - any suggestions appreciated..

Bill Clark, Windham, VT

---

<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:** [July 24, 2018, 12:30pm UTC](https://community.mp3tag.de/t/removing-characters-in-filename-regular-expression/42446/2 "2018-07-24T12:30:09Z")

</div>

Maybe you have a look here:

> [@RegEx to remove Square Brackets](https://community.mp3tag.de/t/regex-to-remove-square-brackets/16961):
>
> Sorry if I have missed it but I cannot get any of the suggestions on this forum to work with the track below. But what I am after is 2 regex's Firstly i have this track Niney The Observer - Blood And Fire [12 Version].mp3 I would line a regex to remove the Square brackets and everything within them and the one that just removed the brackets. Thanks in advance for any help

---

<div class="post-metadata">

**Author:** ![kappclark](https://community.mp3tag.de/user_avatar/community.mp3tag.de/kappclark/32/5321_2.png) [@kappclark](https://community.mp3tag.de/u/kappclark)\
**Post date:** [July 24, 2018, 2:29pm UTC](https://community.mp3tag.de/t/removing-characters-in-filename-regular-expression/42446/3 "2018-07-24T14:29:12Z")

</div>

Thanks ! I will try this --

the RegEx syntax still mystifies me - is ist a standard language, or specific to Mp3Tag ?

---

<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:** [July 24, 2018, 2:37pm UTC](https://community.mp3tag.de/t/removing-characters-in-filename-regular-expression/42446/4 "2018-07-24T14:37:01Z")

</div>

In general the regular expressions are standardized with the exception, that some have particular flavours.

If you do not feel so much at home with regular expressions, why not use an action of the type "Guess value"?  
Source: %\_filename%  
Target: %\_filename% [%dummy%

---

<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/removing-characters-in-filename-regular-expression/42446/5 "2026-02-09T12:27:34Z")

</div>


