# How do I remove anything after a certain word?

**URL:** <https://community.mp3tag.de/t/how-do-i-remove-anything-after-a-certain-word/50096>\
**Category:** Support\
**Created:** [September 2, 2020, 3:35pm UTC](https://community.mp3tag.de/t/how-do-i-remove-anything-after-a-certain-word/50096 "2020-09-02T15:35:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Torres3490](https://community.mp3tag.de/user_avatar/community.mp3tag.de/torres3490/32/8048_2.png) [@Torres3490](https://community.mp3tag.de/u/Torres3490)\
**Post date:** [September 2, 2020, 3:35pm UTC](https://community.mp3tag.de/t/how-do-i-remove-anything-after-a-certain-word/50096/1 "2020-09-02T15:35:06Z")

</div>

Is it possible to make an action that can "delete" any word \*after a \*certain word?  
For example

Tags before  
Dave matthews Band live at rockford

After tags  
Dave Matthews Band

So I want to be able to make an action to erase every word after a certain word.  
So in this example it's --erase every word after "Band"

Can anybody help me?

---

<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 2, 2020, 4:05pm UTC](https://community.mp3tag.de/t/how-do-i-remove-anything-after-a-certain-word/50096/2 "2020-09-02T16:05:55Z")

</div>

Yes. That is possible.  
E.g. an action of the type "Replace with regular expression"  
Source: `certain word.*`  
Replace with: certain word

---

<div class="post-metadata">

**Author:** ![Torres3490](https://community.mp3tag.de/user_avatar/community.mp3tag.de/torres3490/32/8048_2.png) [@Torres3490](https://community.mp3tag.de/u/Torres3490)\
**Post date:** [September 2, 2020, 5:04pm UTC](https://community.mp3tag.de/t/how-do-i-remove-anything-after-a-certain-word/50096/3 "2020-09-02T17:04:25Z")

</div>

That's not what I meant 😁 I'll give you an example:

I want to do this

Tags before  
Dave matthews band live at rockford

After tags  
Dave Matthews Band

So I want to be able to make an action to erase every word after a certain word.  
So in this example it's / erase every word after "Band"

---

<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 2, 2020, 5:17pm UTC](https://community.mp3tag.de/t/how-do-i-remove-anything-after-a-certain-word/50096/4 "2020-09-02T17:17:20Z")

</div>

> [@Torres3490](#):
>
> So in this example it's / erase every word after "Band"

That is more or less what I used as principle example, only that in my case I did not use "band" but "certain word".

The pattern stays the same:  
`$regexp('Dave matthews band live at rockford',band.*,band)`  
(which is the scripting variation of "Replace with regular expression)  
and for the sake of it being more flexible, you enter %album% instead of "Dave matthews band live at rockford"  
This function does not switch the case, though.

---

<div class="post-metadata">

**Author:** ![Torres3490](https://community.mp3tag.de/user_avatar/community.mp3tag.de/torres3490/32/8048_2.png) [@Torres3490](https://community.mp3tag.de/u/Torres3490)\
**Post date:** [September 2, 2020, 5:30pm UTC](https://community.mp3tag.de/t/how-do-i-remove-anything-after-a-certain-word/50096/5 "2020-09-02T17:30:57Z")

</div>

Nice! Thanks for clearing that up for me, I was really confused but I understand now. I will try🤝

---

<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:28pm UTC](https://community.mp3tag.de/t/how-do-i-remove-anything-after-a-certain-word/50096/6 "2026-02-09T12:28:48Z")

</div>


