# Two $if functions for the title

**URL:** https://community.mp3tag.de/t/two-if-functions-for-the-title/16034
**Category:** Support
**Created:** [August 21, 2014, 11:46am UTC](https://community.mp3tag.de/t/two-if-functions-for-the-title/16034 "2014-08-21T11:46:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![thaw04](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/73ab20/32.png) [@thaw04](https://community.mp3tag.de/u/thaw04)
#### Post date: [August 21, 2014, 11:46am UTC](https://community.mp3tag.de/t/two-if-functions-for-the-title/16034/1 "2014-08-21T11:46:22Z")

</div>

This is by far my favorite program and since i recently got a large pile of files to tag i looked into optimizing my actions.  
I figured out every wish i have with the information on this forum except for two i couldnt make it work at the end:

I hope you can help with these situations:

1. Remove the Feat. in every situation in the title:  
**Test Ft. Test (Test Remix) --\> Test (Test Remix)**

I tried it with a regex: `\(.+?\)` but with no luck to only remove the Feat. part of the title.

1. Remove the (Instrumental Version) if the album is only instrumentals;  
IF %album% end with (Instrumentals) remove the text (Instrumental Version) in the title;

I came up with this but obviously it is not perfect yet:

**Format title**  
`$if($eql($right(%album%,2),(Instrumentals)),$regexp(%title%,\(.+?\),%title%)`

Thanks in advance!

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [August 21, 2014, 3:21pm UTC](https://community.mp3tag.de/t/two-if-functions-for-the-title/16034/2 "2014-08-21T15:21:14Z")

</div>

> [@thaw04](#):
>
> ... 1. Remove the Feat. in every situation in the title:  
> Test Ft. Test (Test Remix) --\> Test (Test Remix) ...

TITLE \<== `$regexp(%TITLE%,'^(.+?)\s+[[({]?(?:ft\.?|feat\.?|featuring)\s+(?:[^][(){}]+)[])}]?(\s+.+)?$','$1$2',1)`

> [@thaw04](#):
>
> ... 2. Remove the (Instrumental Version) if the album is only instrumentals;  
> IF %album% end with (Instrumentals) remove the text (Instrumental Version) in the title; ...

TITLE \<== `$if($eql('(Instrumentals)',$right(%ALBUM%,15)), $replace(%TITLE%,' (Instrumental Version)',),%TITLE%)`

DD.20140821.1921.CEST, 20140822.1139.CEST

---

<div class="post-metadata">

### Author: ![thaw04](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/73ab20/32.png) [@thaw04](https://community.mp3tag.de/u/thaw04)
#### Post date: [August 25, 2014, 9:50am UTC](https://community.mp3tag.de/t/two-if-functions-for-the-title/16034/3 "2014-08-25T09:50:05Z")

</div>

This has been a great day, the missing piece of my tagging puzzle completed! Thank you very much!

---

<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:25pm UTC](https://community.mp3tag.de/t/two-if-functions-for-the-title/16034/4 "2026-02-09T12:25:12Z")

</div>


