# Manipulating contained by brackets with and/or operations

**URL:** <https://community.mp3tag.de/t/manipulating-contained-by-brackets-with-and-or-operations/52704>\
**Category:** Support\
**Created:** [April 6, 2021, 6:10pm UTC](https://community.mp3tag.de/t/manipulating-contained-by-brackets-with-and-or-operations/52704 "2021-04-06T18:10:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vltrykin](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/v/df705f/32.png) [@Vltrykin](https://community.mp3tag.de/u/Vltrykin)\
**Post date:** [April 6, 2021, 6:10pm UTC](https://community.mp3tag.de/t/manipulating-contained-by-brackets-with-and-or-operations/52704/1 "2021-04-06T18:10:15Z")

</div>

I have multiple filenames that have content at the end and/or at the start with either () or [] parenthesis, sometimes both.  
Examples:  
004. In This Moment - The In-Between [OFFICIAL VIDEO]  
025. Virtual Self - Eon Break (Blanke Remix)  
045. [DnB] - Feint - Snake Eyes (feat. CoMa) [Monstercat Release]  
I would have no idea what the script would be for this, I know that I will have to use the convert function and use %dummy%. %artist% - %title% for the simpler parts, but I need help with eliminating, or preserving/manipulating the content within the 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:** [April 6, 2021, 6:12pm UTC](https://community.mp3tag.de/t/manipulating-contained-by-brackets-with-and-or-operations/52704/2 "2021-04-06T18:12:54Z")

</div>

If you want to use the Convert function it would be interesting to see what data you want to import into tags or which data you have to recreate the filename.

---

<div class="post-metadata">

**Author:** ![Vltrykin](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/v/df705f/32.png) [@Vltrykin](https://community.mp3tag.de/u/Vltrykin)\
**Post date:** [April 6, 2021, 6:14pm UTC](https://community.mp3tag.de/t/manipulating-contained-by-brackets-with-and-or-operations/52704/3 "2021-04-06T18:14:22Z")

</div>

I only have the filename and Artist sadly

---

<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:** [April 6, 2021, 6:20pm UTC](https://community.mp3tag.de/t/manipulating-contained-by-brackets-with-and-or-operations/52704/4 "2021-04-06T18:20:05Z")

</div>

It is much easier to create an unstructured string like the filename from structured tag fields.

Actually, I did not really get what you want to achieve. You told us what you have in the filenames. But then... do you want to get anything from in front of the brackets?  
For that I would use for

> [@Vltrykin](#):
>
> 1. In This Moment - The In-Between [OFFICIAL VIDEO]

%track%. %artist% - %title% [%dummy%  
For

> [@Vltrykin](#):
>
> 1. Virtual Self - Eon Break (Blanke Remix)

%track%. %artist% - %title% (%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:29pm UTC](https://community.mp3tag.de/t/manipulating-contained-by-brackets-with-and-or-operations/52704/5 "2026-02-09T12:29:10Z")

</div>


