# Remove part of a field

**URL:** https://community.mp3tag.de/t/remove-part-of-a-field/54390
**Category:** Support
**Created:** [September 15, 2021, 2:08pm UTC](https://community.mp3tag.de/t/remove-part-of-a-field/54390 "2021-09-15T14:08:27Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Bluesrule](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/ed8c4c/32.png) [@Bluesrule](https://community.mp3tag.de/u/Bluesrule)
#### Post date: [September 15, 2021, 2:08pm UTC](https://community.mp3tag.de/t/remove-part-of-a-field/54390/1 "2021-09-15T14:08:27Z")

</div>

In the Album Field I have

CHBS Vol 05 - Lonesome Blues

I would like to have

Lonesome Blues

I'm sure this has been answered BUT , I'm unable to find it .

---

<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: [September 15, 2021, 3:44pm UTC](https://community.mp3tag.de/t/remove-part-of-a-field/54390/2 "2021-09-15T15:44:17Z")

</div>

With the search words "remove part" I found e.g. this thread:

> [@How do I remove part of a tag](https://community.mp3tag.de/t/how-do-i-remove-part-of-a-tag/5325):
>
> How do I remove part of a tag after a certain character. For example, this is what the artist tag is currently set to: Oceanic / Insanity Blue Pearl / Naked In The Rain What I want to do is delete all characters before the /, so I'm left with just 'Insanity' and 'Naked In The Rain'. Is this possible?

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [September 15, 2021, 5:17pm UTC](https://community.mp3tag.de/t/remove-part-of-a-field/54390/3 "2021-09-15T17:17:35Z")

</div>

Do you want to do that for multiple songs?  
All of them have some "blabla" before the` - ` (space dash space) and you want only the part after the space dash?

You could try Convert -\> Tag-\>Tag ALT + 5  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/e/e1cc2a76fb81073d7cd28238211991308c2219b9.png)

**Explanation:**  
The tag field ALBUM will be processed with a regular expression.  
`$regexp(%ALBUM%,(.*) - (.*),$2)`

The first `(.*)` capturing group matches everything before the last `-` = `CHBS Vol 05`  
The second `(.*)` capturing group matches everything after the last `-` = `Lonesome Blues`  
Then your existing content in ALBUM will be replaced with the content of the second group.

As always:  
[Test it carefully](https://regex101.com/r/oKL9bq/1) and create backups of your songs before you edit the medata in it.

---

<div class="post-metadata">

### Author: ![Bluesrule](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/ed8c4c/32.png) [@Bluesrule](https://community.mp3tag.de/u/Bluesrule)
#### Post date: [September 15, 2021, 9:43pm UTC](https://community.mp3tag.de/t/remove-part-of-a-field/54390/4 "2021-09-15T21:43:22Z")

</div>

@ [LyricsLover](https://community.mp3tag.de/u/LyricsLover)

Thank-you very much for your time and effort , it is appreciated .

---

<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: [October 15, 2021, 9:44pm UTC](https://community.mp3tag.de/t/remove-part-of-a-field/54390/5 "2021-10-15T21:44:02Z")

</div>

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