# Remove last 7 characters from ALBUM tag

**URL:** <https://community.mp3tag.de/t/remove-last-7-characters-from-album-tag/55026>\
**Category:** Support\
**Created:** [November 6, 2021, 2:51am UTC](https://community.mp3tag.de/t/remove-last-7-characters-from-album-tag/55026 "2021-11-06T02:51:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![doobre](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/e9bcb4/32.png) [@doobre](https://community.mp3tag.de/u/doobre)\
**Post date:** [November 6, 2021, 2:51am UTC](https://community.mp3tag.de/t/remove-last-7-characters-from-album-tag/55026/1 "2021-11-06T02:51:32Z")

</div>

I am long time user but not at all an 'under the hood' tinkler, all I have needed to do with MP3tag so far I have mangaed.. however...  
I have many hundreds of files that have an ALBUM tag of \> for example "DIVE [1993]" this date is NOT from the DATE tag, it is part of the ALBUM tag, unfortunately.  
So Q. how to use Actions or Convert to remove the last 7 characters of the ALBUM tag/field..?

Cheers to you all out there helping out us users with less technically minded.. and special Florian for keeping updating..  
CD

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [November 6, 2021, 5:22am UTC](https://community.mp3tag.de/t/remove-last-7-characters-from-album-tag/55026/2 "2021-11-06T05:22:26Z")

</div>

As an action (quick or in an action group)

`Action type: Format value`  
`Field: ALBUM`  
`Format String: $cutright(%album%,7)`

or with the converter Tag-\>Tag with a preview:

`Field: ALBUM`  
`Format String: $cutright(%album%,7)`

---

<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:** [November 6, 2021, 7:56am UTC](https://community.mp3tag.de/t/remove-last-7-characters-from-album-tag/55026/3 "2021-11-06T07:56:21Z")

</div>

Even though the $cutright() function is a completely valid way to get rid of the trailing 7 characters, I am a little reluctant to use this (IMHO) brute force approach as it cuts away the last 7 characters even if they are not a number in brackets.

So, as an alternative, to remove a number in square brackets, I sugget:  
`$regexp('DIVE [1993]',' \[\d+\]',)`

---

<div class="post-metadata">

**Author:** ![doobre](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/e9bcb4/32.png) [@doobre](https://community.mp3tag.de/u/doobre)\
**Post date:** [November 14, 2021, 10:05am UTC](https://community.mp3tag.de/t/remove-last-7-characters-from-album-tag/55026/4 "2021-11-14T10:05:14Z")

</div>

Thanks to ohrenkino and poster.. not only a quick responce but two ways of doing it.. shows how good this software really is..  
I had tried to do it with an action as shown in posters reply.. but i must have had a slight error somewhere.. anyway it will work now I have a confirm that at least I was heading in the right direction..  
cheers to all again CD

---

<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:** [November 15, 2021, 10:23am UTC](https://community.mp3tag.de/t/remove-last-7-characters-from-album-tag/55026/5 "2021-11-15T10:23:50Z")

</div>

> [@doobre](#):
>
> but two ways of doing it..

If you want to learn a 3rd way:  
Use an action of the type "Guess value"  
Source. %album%  
Target: %album% [%dummy%

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [February 9, 2026, 12:29pm UTC](https://community.mp3tag.de/t/remove-last-7-characters-from-album-tag/55026/6 "2026-02-09T12:29:30Z")

</div>


