# Trimming Fields?!

**URL:** https://community.mp3tag.de/t/trimming-fields/5916
**Category:** General Discussion
**Created:** [December 19, 2007, 4:55pm UTC](https://community.mp3tag.de/t/trimming-fields/5916 "2007-12-19T16:55:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![EvilKeg](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/8491ac/32.png) [@EvilKeg](https://community.mp3tag.de/u/EvilKeg)
#### Post date: [December 19, 2007, 4:55pm UTC](https://community.mp3tag.de/t/trimming-fields/5916/1 "2007-12-19T16:55:59Z")

</div>

I have all my MP3s harmonically archived, meaning that the Camelot Wheel is what is written to the comments field.

Some time ago I used Mixed in Key and it added the BPM after the key.

Is there a way I can create an action that trims this down? I would appreciate it if I had one that did both three char fields as well as 2 char.

At the moment they look like this

12A - 123.00  
12A - 135.01  
9A - 130  
9B - 135

etc

I want it to look like:

12A  
12A  
9A  
9B

as I already have a script that adds a leading zero to them and makes them look all nice 🙂  
I have never used such a powerful mp3 tagging application in all my 15 years of MP3ing.. I am so impressed, please keep up the good work.

Regards

EvilKeg  
[www.evilkeg.co.uk](http://www.evilkeg.co.uk)  
archives.brap.fm/EvilKeg

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [December 19, 2007, 6:17pm UTC](https://community.mp3tag.de/t/trimming-fields/5916/2 "2007-12-19T18:17:53Z")

</div>

This action should do the trick

_Action type:_ **Replace with regular expression**  
_Field:_ **COMMENT**  
_Regular expression:_ **(.+?) .\***  
_Replace matches with:_ **$1**

[] case-sensitive comparison

Glad that you like Mp3tag 🙂
