# mass deleting partial info in tag field

**URL:** https://community.mp3tag.de/t/mass-deleting-partial-info-in-tag-field/11530
**Category:** Support
**Created:** [February 2, 2011, 5:34pm UTC](https://community.mp3tag.de/t/mass-deleting-partial-info-in-tag-field/11530 "2011-02-02T17:34:35Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![SB1](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/0ea827/32.png) [@SB1](https://community.mp3tag.de/u/SB1)
#### Post date: [February 2, 2011, 5:34pm UTC](https://community.mp3tag.de/t/mass-deleting-partial-info-in-tag-field/11530/1 "2011-02-02T17:34:35Z")

</div>

Hi guys,

I want to remove a certain part of info in the comment field on a batch of files. Examples:

7A - Coocon Recordings

I only want to remove Cocoon Recordings, so keeping 7A - .

5A/6A - Mouseville

Only want to keep 5A/6A - .

I'm not sure how to do this with actions. Any ideas?

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [February 2, 2011, 6:07pm UTC](https://community.mp3tag.de/t/mass-deleting-partial-info-in-tag-field/11530/2 "2011-02-02T18:07:31Z")

</div>

Action: Foramt Value  
Field: COMMENT  
Formatstring: $regexp(%comment%,(.\* - ).\*,$1)

or, if you want to delete " - " also (which would make sense to me):  
Formatstring: $regexp(%comment%,(._) - ._,$1)

---

<div class="post-metadata">

### Author: ![SB1](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/0ea827/32.png) [@SB1](https://community.mp3tag.de/u/SB1)
#### Post date: [February 2, 2011, 6:22pm UTC](https://community.mp3tag.de/t/mass-deleting-partial-info-in-tag-field/11530/3 "2011-02-02T18:22:48Z")

</div>

I actually want to keep the " - " part so I can easily type any additional things in the comments with a clear division between that and the Key stuff (4A etc.).

I tried the first one, didn't work. Nothing changed.

The second one worked on the first example, but not on the second one.

I have no knowledge of regexp at al so can't really think how to fix that. Any ideas?

**Edit:**

Sorry, the field actually looks like this, so with another " - " at the end:

example1: 7A - Coocon Recordings -

example2: 5A/6A - Mouseville -

Only want to keep:  
7A -  
5A/6A -

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [February 2, 2011, 6:32pm UTC](https://community.mp3tag.de/t/mass-deleting-partial-info-in-tag-field/11530/4 "2011-02-02T18:32:41Z")

</div>

> [@SB1](#):
>
> **Edit:**
> 
> Sorry, the field actually looks like this, so with another " - " at the end:

That's an important info. Here's your format string:  
$regexp(%comment%,(._? - )._,$1)

EDIT:  
here's your knowledge:  
[https://docs.mp3tag.de/actions/replace-regexp](https://docs.mp3tag.de/actions/replace-regexp)  
[https://docs.mp3tag.de/scripting](https://docs.mp3tag.de/scripting)

---

<div class="post-metadata">

### Author: ![SB1](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/0ea827/32.png) [@SB1](https://community.mp3tag.de/u/SB1)
#### Post date: [February 2, 2011, 6:35pm UTC](https://community.mp3tag.de/t/mass-deleting-partial-info-in-tag-field/11530/5 "2011-02-02T18:35:25Z")

</div>

> [@pone](#):
>
> That's an important info. Here's your format string:  
> $regexp(%comment%,(._? - )._,$1)

Thank you so much!

Was fiddling around with the string you gave earlier but couldn't get it right.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [February 2, 2011, 7:07pm UTC](https://community.mp3tag.de/t/mass-deleting-partial-info-in-tag-field/11530/6 "2011-02-02T19:07:14Z")

</div>

> [@SB1](#):
>
> I actually want to keep the " - " part so I can easily type any additional things in the comments with a clear division between that and the Key stuff (4A etc.). ...  
> example1: 7A - Coocon Recordings -  
> example2: 5A/6A - Mouseville -  
> Only want to keep:  
> 7A -  
> 5A/6A -

Begin Action Group **Test\_2011#20110202.SB1** 

Action #1  
_Actiontype 5:_ **Format value**  
_Field:_ **COMMENT**  
_Formatstring:_ **$left(%COMMENT%,$add($strstr(%COMMENT%,' - '),2))**

 

End Action Group **Test\_2011#20110202.SB1** (1 Action)

 

DD.20110202.2107.CET

---

<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:22pm UTC](https://community.mp3tag.de/t/mass-deleting-partial-info-in-tag-field/11530/7 "2026-02-09T12:22:52Z")

</div>


