# Removing part of album name from the end of the field

**URL:** https://community.mp3tag.de/t/removing-part-of-album-name-from-the-end-of-the-field/70072
**Category:** Support
**Created:** [November 3, 2025, 6:21pm UTC](https://community.mp3tag.de/t/removing-part-of-album-name-from-the-end-of-the-field/70072 "2025-11-03T18:21:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Dotcom1970](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/9de0a6/32.png) [@Dotcom1970](https://community.mp3tag.de/u/Dotcom1970)
#### Post date: [November 3, 2025, 6:21pm UTC](https://community.mp3tag.de/t/removing-part-of-album-name-from-the-end-of-the-field/70072/1 "2025-11-03T18:21:31Z")

</div>

I have some files with the %ALBUM% field formatted like this.

[Catalogue Number] Album Title [Catalogue Number]

I’d like to remove the second instance of the catalogue number from the end of the album title.

I’ve not been able to get my head around a regular expression that would allow me to do so.

Can anybody advise?

Thanks

---

<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 3, 2025, 6:34pm UTC](https://community.mp3tag.de/t/removing-part-of-album-name-from-the-end-of-the-field/70072/2 "2025-11-03T18:34:41Z")

</div>

> [@Dotcom1970](#):
>
> [Catalogue Number] Album Title [Catalogue Number]

Try Convert\>Tag-Tag for ALBUM  
Format string: `$regexp(%album%,'(.*)\s+\[.*',$1)`

---

<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 3, 2025, 7:09pm UTC](https://community.mp3tag.de/t/removing-part-of-album-name-from-the-end-of-the-field/70072/4 "2025-11-03T19:09:27Z")

</div>

So, which program does not read the tag field for ALBUM?  
Or are you talking about the filename?  
Then use Convert\>Tag-Filename afterwards to write a new filename.

---

<div class="post-metadata">

### Author: ![Dotcom1970](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/9de0a6/32.png) [@Dotcom1970](https://community.mp3tag.de/u/Dotcom1970)
#### Post date: [November 3, 2025, 7:10pm UTC](https://community.mp3tag.de/t/removing-part-of-album-name-from-the-end-of-the-field/70072/5 "2025-11-03T19:10:14Z")

</div>

Don’t worry, I realised I had entered it in the wrong place. It now works as it should! Many thanks

---

<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: [December 3, 2025, 7:10pm UTC](https://community.mp3tag.de/t/removing-part-of-album-name-from-the-end-of-the-field/70072/6 "2025-12-03T19:10:54Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
