# Delete All Text After Word

**URL:** <https://community.mp3tag.de/t/delete-all-text-after-word/17213>\
**Category:** Support\
**Created:** [September 7, 2015, 11:18am UTC](https://community.mp3tag.de/t/delete-all-text-after-word/17213 "2015-09-07T11:18:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nanogirl21](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/cc9497/32.png) [@nanogirl21](https://community.mp3tag.de/u/nanogirl21)\
**Post date:** [September 7, 2015, 11:18am UTC](https://community.mp3tag.de/t/delete-all-text-after-word/17213/1 "2015-09-07T11:18:07Z")

</div>

I am new to MP3Tag and am having trouble trying to accomplish a tag. I have over 2,000 songs and I would like to delete all text in the TITLE tag after the word FEAT.

**Current Format Example**  
The Five Perfect Exertions - Feat. Bahamadia, 7l & Esoteric  
Stonez of Christ - Feat. Jus Allah  
Saviorself feat. Kill Priest  
The Kingdom That Worshipped the Dead feat. Dilated Peoples  
And Your Blood Will Blot Out the Sun feat. Immortal Technique & Poison Pen  
Walk with Me feat. Gutta

**What I Would Like**  
The Five Perfect Exertions  
Stonez of Christ  
Saviorself  
The Kingdom That Worshipped the Dead  
And Your Blood Will Blot Out the Sun  
Walk with Me

Again I am pretty new to this program so detailed instructions on how to do this is appreciated. Thank you.

---

<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:** [September 7, 2015, 12:14pm UTC](https://community.mp3tag.de/t/delete-all-text-after-word/17213/2 "2015-09-07T12:14:35Z")

</div>

> [@nanogirl21](#):
>
> ... would like to delete all text in the TITLE tag after the word FEAT.
> 
> **Current Format Example**  
> The Five Perfect Exertions - Feat. Bahamadia, 7l & Esoteric  
> Stonez of Christ - Feat. Jus Allah  
> Saviorself feat. Kill Priest  
> The Kingdom That Worshipped the Dead feat. Dilated Peoples  
> And Your Blood Will Blot Out the Sun feat. Immortal Technique & Poison Pen  
> Walk with Me feat. Gutta
> 
> **What I Would Like**  
> The Five Perfect Exertions  
> Stonez of Christ  
> Saviorself  
> The Kingdom That Worshipped the Dead  
> And Your Blood Will Blot Out the Sun  
> Walk with Me  
> ...

You have to treat those with a hyphen and those without a hyphen separately.  
So:  
Load the files into MP3tag.  
Apply a filter to get those with a hyphen:  
%title% HAS "- feat"

Select all files (Ctrl-A).  
Create an action of the type "Guess values (import value)" for TITLE (see the FAQs [/t/967/1](https://community.mp3tag.de/t/967/1) on how to create an action)  
Enter as  
Guessing pattern: %title% - feat %dummy%

Now filter again:  
%title% HAS " feat"

Select all files (Ctrl-A)  
Create another action of the type "Guess values" for TITLE  
Guessing pattern: %title% feat %dummy%

---

<div class="post-metadata">

**Author:** ![nanogirl21](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/cc9497/32.png) [@nanogirl21](https://community.mp3tag.de/u/nanogirl21)\
**Post date:** [September 7, 2015, 12:24pm UTC](https://community.mp3tag.de/t/delete-all-text-after-word/17213/3 "2015-09-07T12:24:51Z")

</div>

> [@ohrenkino](#):
>
> You have to treat those with a hyphen and those without a hyphen separately.  
> So:  
> Load the files into MP3tag.  
> Apply a filter to get those with a hyphen:  
> %title% HAS "- feat"
> 
> Select all files (Ctrl-A).  
> Create an action of the type "Guess values (import value)" for TITLE (see the FAQs [/t/967/1](https://community.mp3tag.de/t/967/1) on how to create an action)  
> Enter as  
> Guessing pattern: %title% - feat %dummy%
> 
> Now filter again:  
> %title% HAS " feat"
> 
> Select all files (Ctrl-A)  
> Create another action of the type "Guess values" for TITLE  
> Guessing pattern: %title% feat %dummy%

Thank you so much! Do you know if there is a way to create an automated series of steps? Example: make 1 button to complete step 1 and 2 above?

---

<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:** [September 7, 2015, 1:52pm UTC](https://community.mp3tag.de/t/delete-all-text-after-word/17213/4 "2015-09-07T13:52:17Z")

</div>

> [@nanogirl21](#):
>
> Thank you so much! Do you know if there is a way to create an automated series of steps? Example: make 1 button to complete step 1 and 2 above?

In a way, yes:

You create an action group with 2 actions.  
First action: Keep the one for "feat" without hyphen.  
Add a second action: (simple) Replace for TITLE  
Search string: blank-minus-blank  
Replace:  
(leave that empty)  
The second action removes the leftover blank-minus-blank from those titles that have " - feat", but as the first cut away only the "feat ...", the " - " is still there.  
The action should not hurt if there is no hyphen in the title.

---

<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:** [September 7, 2015, 3:50pm UTC](https://community.mp3tag.de/t/delete-all-text-after-word/17213/5 "2015-09-07T15:50:07Z")

</div>

> [@nanogirl21](#):
>
> ... I would like to delete all text in the TITLE tag after the word FEAT. ...

You may save the feat-data into a dedicated tag-field before getting lost of the feat-data at all.

**1. Action "Format value" Field ......: FEAT Formatstring: $regexp(%TITLE%,'^(.+?)[\s-]+[[({\<]?(?:ft\.?|feat\.?|featuring)\s+(.+?)[])}\>]?\s\*$','$2',1) 2. Action "Format value" Field ......: TITLE Formatstring: $regexp(%TITLE%,'^(.+?)[\s-]+[[({\<]?(?:ft\.?|feat\.?|featuring)\s+(.+?)[])}\>]?\s\*$','$1',1)**

DD.20150907.1950.CEST

---

<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/delete-all-text-after-word/17213/6 "2026-02-09T12:25:51Z")

</div>


