# Removing of a certain number of ending chars

**URL:** https://community.mp3tag.de/t/removing-of-a-certain-number-of-ending-chars/8586
**Category:** Support
**Created:** [July 9, 2009, 8:04pm UTC](https://community.mp3tag.de/t/removing-of-a-certain-number-of-ending-chars/8586 "2009-07-09T20:04:24Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![JayLaFunk](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/aca169/32.png) [@JayLaFunk](https://community.mp3tag.de/u/JayLaFunk)
#### Post date: [July 9, 2009, 8:04pm UTC](https://community.mp3tag.de/t/removing-of-a-certain-number-of-ending-chars/8586/1 "2009-07-09T20:04:24Z")

</div>

Hi,

I know that the action below removes leading chars but what is the action for removing chars at the end of a filename, tag etc

**"Create a new action in an existing action group and choose Replace with regular expression as action type.  
In Field, choose where you want to remove the chars.  
In Regular expression enter ^.{3} if you want to remove 3 chars.  
Replace matches with stays empty.  
So you can enter the number of chars to be removed between the two curly brackets."**

Regards  
Jay

---

<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: [July 10, 2009, 4:26am UTC](https://community.mp3tag.de/t/removing-of-a-certain-number-of-ending-chars/8586/2 "2009-07-10T04:26:04Z")

</div>

> [@JayLaFunk](#):
>
> ... removes leading chars but what is the action for removing chars at the end of a filename, tag etc ... In Regular expression enter ^.{3} if you want to remove 3 chars. Replace matches with stays empty. ...

To detect e. g. 3 chars at end of the string, you should code something like this:  
**.{3}$**  
but I am not sure if the $ anchor works in Mp3tag's $regexp function or in the regexp action.

DD.20090710.0825.CEST

---

<div class="post-metadata">

### Author: ![JayLaFunk](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/aca169/32.png) [@JayLaFunk](https://community.mp3tag.de/u/JayLaFunk)
#### Post date: [July 10, 2009, 7:11am UTC](https://community.mp3tag.de/t/removing-of-a-certain-number-of-ending-chars/8586/3 "2009-07-10T07:11:05Z")

</div>

> [@DetlevD](#):
>
> To detect e. g. 3 chars at end of the string, you should code something like this:  
> **.{3}$**  
> but I am not sure if the $ anchor works in Mp3tag's $regexp function or in the regexp action.
> 
> DD.20090710.0825.CEST

Hi DetlevD,

That worked a treat, thank you...

Regards  
Jay

---

<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:21pm UTC](https://community.mp3tag.de/t/removing-of-a-certain-number-of-ending-chars/8586/4 "2026-02-09T12:21:38Z")

</div>


