# Remove parenthetical "feat." from filename

**URL:** https://community.mp3tag.de/t/remove-parenthetical-feat-from-filename/42498
**Category:** Support
**Created:** [July 18, 2018, 5:35pm UTC](https://community.mp3tag.de/t/remove-parenthetical-feat-from-filename/42498 "2018-07-18T17:35:29Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![sheepdisease](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@sheepdisease](https://community.mp3tag.de/u/sheepdisease)
#### Post date: [July 18, 2018, 5:35pm UTC](https://community.mp3tag.de/t/remove-parenthetical-feat-from-filename/42498/1 "2018-07-18T17:35:29Z")

</div>

> [@Remove parenthetical phrase from filename?](https://community.mp3tag.de/t/remove-parenthetical-phrase-from-filename/2201/7):
>
> \s\*(.\*)

How about adapting this to prevent it being applied when the filename / title contains '(feat. )' regardless of the number of characters within parenthesis?

How would this be done?

---

<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 18, 2018, 5:43pm UTC](https://community.mp3tag.de/t/remove-parenthetical-feat-from-filename/42498/2 "2018-07-18T17:43:25Z")

</div>

> [@Remove parenthetical phrase from filename?](https://community.mp3tag.de/t/remove-parenthetical-phrase-from-filename/2201/9):
>
> How would this be done?

I would use a filter  
%title% HAS "(" AND NOT %title% HAS "(feat."

---

<div class="post-metadata">

### Author: ![sheepdisease](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@sheepdisease](https://community.mp3tag.de/u/sheepdisease)
#### Post date: [July 18, 2018, 7:55pm UTC](https://community.mp3tag.de/t/remove-parenthetical-feat-from-filename/42498/3 "2018-07-18T19:55:58Z")

</div>

Thank you for your reply.

Is there not a way to do this within an action? Something like:

```
[#0]
T=4
F=_FILENAME
1=$if2(\\(feat. \\)),( \\s*\\(.*\\)
2=
3=1

[#1]
T=4
F=TITLE
1=$if2(\\(feat. \\)),( \\s*\\(.*\\)
2=
3=1

```

![image](https://community.mp3tag.de/uploads/default/original/2X/4/477184bf4318f966f0ade7a1b9fde8deafea5aa8.png)

Although there seems to be a problem getting this working, I am not sure exactly where I have gone wrong?

---

<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 18, 2018, 8:07pm UTC](https://community.mp3tag.de/t/remove-parenthetical-feat-from-filename/42498/4 "2018-07-18T20:07:04Z")

</div>

You might have noticed that the original example was to be used as part of a regular expression.  
If you want to use the scripting language you have to use an action of the type "Format value" with the $regexp() nested inside the $if() statement.  
Feel free to experiment.  
I find it much simpler to use the filter.

Using the filter also has the discrete charme that only those files get processed that actually match the criteria.

---

<div class="post-metadata">

### Author: ![sheepdisease](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@sheepdisease](https://community.mp3tag.de/u/sheepdisease)
#### Post date: [July 18, 2018, 9:16pm UTC](https://community.mp3tag.de/t/remove-parenthetical-feat-from-filename/42498/5 "2018-07-18T21:16:17Z")

</div>

Understood.

I have been amending the code but cannot get it to work despite attempting to fix using your guidance:

Not quite sure what is wrong with this?

```
$if2($regexp(feat. ),( \\s*(.*)))

```

or perhaps I should use

`$if2($neql(`

although I cannot figure out how this would be implemented exactly with coding.

---

<div class="post-metadata">

### Author: ![sheepdisease](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@sheepdisease](https://community.mp3tag.de/u/sheepdisease)
#### Post date: [July 19, 2018, 5:20am UTC](https://community.mp3tag.de/t/remove-parenthetical-feat-from-filename/42498/6 "2018-07-19T05:20:38Z")

</div>

I also want to use something similar to stop the case of text within brackets being changed when running my all in one import rule, especially to make the action skip case change for a contributing artist like '(feat. The Four Seasons)'. To complicate this, I would want the case to be changed for anything outside of the '(feat. )' brackets. Sometimes there are also other brackets which contain information which should be affected.

---

<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/remove-parenthetical-feat-from-filename/42498/7 "2026-02-09T12:27:34Z")

</div>


