# How do I delete the last characters in a field?

**URL:** https://community.mp3tag.de/t/how-do-i-delete-the-last-characters-in-a-field/13597
**Category:** General Discussion
**Created:** [June 29, 2012, 6:47pm UTC](https://community.mp3tag.de/t/how-do-i-delete-the-last-characters-in-a-field/13597 "2012-06-29T18:47:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![anyotherbizniz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/c68b51/32.png) [@anyotherbizniz](https://community.mp3tag.de/u/anyotherbizniz)
#### Post date: [June 29, 2012, 6:47pm UTC](https://community.mp3tag.de/t/how-do-i-delete-the-last-characters-in-a-field/13597/1 "2012-06-29T18:47:32Z")

</div>

I am sure this must have been covered already somewhere because it is such a simple question. But I have looked for hours (literally) on the forum and via google and not found an answer. Possibly because I am stupid, of course..

But I want to know how to remove the last few characters in tags.

For example. on the album I am trying to edit, every TITLE has the year at the end that I want to remove, eg " Amoureux Solitaires (81)". How do I get Mp3TAG to remove the (81) - or (91) or (78) etc - from each track?

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [June 29, 2012, 7:08pm UTC](https://community.mp3tag.de/t/how-do-i-delete-the-last-characters-in-a-field/13597/2 "2012-06-29T19:08:03Z")

</div>

> [@anyotherbizniz](#):
>
> ... every TITLE has the year at the end that I want to remove, eg " Amoureux Solitaires (81)". How do I get Mp3TAG to remove the (81) - or (91) or (78) etc - from each track?

You could try an action of the type "Replace with regular expression".  
Enter as search string:  
(.\*) (\d+)$  
replace with:  
$1  
this should delete any numbers in brackets at the end of a string.

---

<div class="post-metadata">

### Author: ![anyotherbizniz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/c68b51/32.png) [@anyotherbizniz](https://community.mp3tag.de/u/anyotherbizniz)
#### Post date: [June 29, 2012, 7:47pm UTC](https://community.mp3tag.de/t/how-do-i-delete-the-last-characters-in-a-field/13597/3 "2012-06-29T19:47:22Z")

</div>

Thanks. Big thanks.

That worked perfectly. I am sure I was being dumb and that is somewhere in the FAQs already , but I could not find it. I will bookmark this for the future.

But, and again I could just be being dumb, how would one work all that out?
