# 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:** 1
**Showing post:** 2

<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

---

_[View the full topic](https://community.mp3tag.de/t/two-if-functions-for-the-title/16034)._
