# Suggestion: Remove x number of characters from a field

**URL:** https://community.mp3tag.de/t/suggestion-remove-x-number-of-characters-from-a-field/5647
**Category:** General Discussion
**Created:** [October 27, 2007, 3:44pm UTC](https://community.mp3tag.de/t/suggestion-remove-x-number-of-characters-from-a-field/5647 "2007-10-27T15:44:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pandaking](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/b9bd4f/32.png) [@pandaking](https://community.mp3tag.de/u/pandaking)
#### Post date: [October 27, 2007, 3:44pm UTC](https://community.mp3tag.de/t/suggestion-remove-x-number-of-characters-from-a-field/5647/1 "2007-10-27T15:44:08Z")

</div>

**Suggestion:**  
Remove a certain amount of characters from the beginning or end of a selected field.

**Example:**  
If say I had some tracks which had the titles:

```
Track One-01-Album
Track Two-02-Album
Track Three-03-Album

```

Now as you can see for some reason the titles also contain the track number and album after each title name.

So I want to delete 9 characters from the end of the Title field.

This would leave:

```
Track One
Track Two
Track Three

```

Perfect! 😃

So you set how many characters to delete (ie. 5, 7, 9), you set whether the characters to be deleted are at the start or at the end of the field (ie. end in the above example), and then you select which field it is to be deleted from (ie. Title, Album).

I hope this makes sense, I am not great at explaining things.  
Cheers 😛

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [October 27, 2007, 6:06pm UTC](https://community.mp3tag.de/t/suggestion-remove-x-number-of-characters-from-a-field/5647/2 "2007-10-27T18:06:48Z")

</div>

You can do this with Mp3tag actions:  
[/t/967/1](https://community.mp3tag.de/t/967/1)

_Action type:_ **Replace with regular expressions**  
_Field:_ **TITLE**  
_Regular expression:_ **.{9}$**  
_Replace matches with:_

[] case-sensitive comparison

---

<div class="post-metadata">

### Author: ![pandaking](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/b9bd4f/32.png) [@pandaking](https://community.mp3tag.de/u/pandaking)
#### Post date: [October 27, 2007, 6:29pm UTC](https://community.mp3tag.de/t/suggestion-remove-x-number-of-characters-from-a-field/5647/3 "2007-10-27T18:29:15Z")

</div>

Wow, thanks for the quick response - that's awesome.  
Should save me some time, I need to learn how to use these "regular expressions".

Thanks again for a great reply - man I love this program ![:music:](https://community.mp3tag.de/uploads/default/original/1X/2ba05d1ade5eb0d15fc173be6f717dbe63890a70.gif ":music:")
