delete trailing characters from tag (regex help)


#1

I know this is super simple for most of you, but I'm having trouble.

My BPM tags are written in xxx.xx format, with two decimal place precision.
However, itunes mac chokes on this (windows does not, go figure).

Anyway, since all BPM data is either: xx.xx or xxx.xx I'd like to simple remove the last three characters.

Simple, huh?

Extra points for rounding the integer part up or down.

thanks!!


#2

How about that, I solved my own question

you match it with this:

.[0-9]+

anyway, thanks for the great program!


#3

First look here:
BPM-Nachkommastellen runden ... ?

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


#4

This is excellent! Thank you for the help :slight_smile: