# delete trailing characters from tag (regex help)

**URL:** https://community.mp3tag.de/t/delete-trailing-characters-from-tag-regex-help/5643
**Category:** Support
**Created:** [October 26, 2007, 12:34pm UTC](https://community.mp3tag.de/t/delete-trailing-characters-from-tag-regex-help/5643 "2007-10-26T12:34:25Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [October 26, 2007, 1:09pm UTC](https://community.mp3tag.de/t/delete-trailing-characters-from-tag-regex-help/5643/3 "2007-10-26T13:09:47Z")

</div>

> [@digraph](#):
>
> ... My BPM tags are written in xxx.xx format, with two decimal place precision. ... I'd like to simple remove the last three characters. ... Extra points for rounding the integer part up or down. thanks!!

First look here:  
[BPM-Nachkommastellen runden ... ?](https://community.mp3tag.de/t/4290/1)

Round BPM to integer.mta

Action #1:  
_Action type:_ **Format value**  
_Field:_ **BPM\_MIXMEISTER**  
_Formatstring:_ **$if2(%BPM\_MIXMEISTER%,%BPM%)**

Action #2:  
_Action type:_ **Format value**  
_Field:_ **BPM**  
_Formatstring:_ **$left($replace(%BPM%,.,)00,$add($len($div(%BPM%,1)),2))**

Action #3:  
_Action type:_ **Format value**  
_Field:_ **BPM**  
_Formatstring:_ **$ifgreater($mod(%BPM%,100),44,$add($div(%BPM%,100),1),$div(%BPM%,100))**

DD.20071026.1710.CEST

---

_[View the full topic](https://community.mp3tag.de/t/delete-trailing-characters-from-tag-regex-help/5643)._
