# Delete everything after given text

**URL:** https://community.mp3tag.de/t/delete-everything-after-given-text/69378
**Category:** Support
**Created:** [August 11, 2025, 1:18am UTC](https://community.mp3tag.de/t/delete-everything-after-given-text/69378 "2025-08-11T01:18:47Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [August 11, 2025, 5:09pm UTC](https://community.mp3tag.de/t/delete-everything-after-given-text/69378/7 "2025-08-11T17:09:27Z")

</div>

> [@chayes](#):
>
> It’s working fine as an action , but removes the file extension too.

Good catch. Only the Action is removing the filename extension.  
(Using Convert Tag-Tag does not remove the extension with above regular expression as you can see in the preview).

As an argument, I could say that the examples you gave has no file extension. 😉  
Just a joke...

For an Action "Replace with regular expression" that keeps the file extension, you could use:  
Regular Expression:  
`(^.*\(19\d\d\)).*\.(.*)`  
Replace matches with:  
`$1.$2`

 ![image](https://community.mp3tag.de/uploads/default/original/3X/c/8/c801147b9665694af1f0315316b08fc692799614.png)

---

_[View the full topic](https://community.mp3tag.de/t/delete-everything-after-given-text/69378)._
