# Question on how to complete this Tag Edit

**URL:** https://community.mp3tag.de/t/question-on-how-to-complete-this-tag-edit/56036
**Category:** Mac
**Created:** [January 24, 2022, 4:54pm UTC](https://community.mp3tag.de/t/question-on-how-to-complete-this-tag-edit/56036 "2022-01-24T16:54:03Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![HumanJukeBoxDJMO](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/779978/32.png) [@HumanJukeBoxDJMO](https://community.mp3tag.de/u/HumanJukeBoxDJMO)
#### Post date: [January 24, 2022, 4:54pm UTC](https://community.mp3tag.de/t/question-on-how-to-complete-this-tag-edit/56036/1 "2022-01-24T16:54:03Z")

</div>

Attached is a screenshot of files that I want to edit the tags in. You will see the filename has various fields that are bracketed out with numbers and abbreviations "(##) (####) (Vid).mp4”. What I am trying to do is mass delete those series of numbers even though the values do not match from file to file. Can this program some how understand the format I typed above and remove that text from the desired field? I hope that my question is written in a way that you understand my request. I have figured out how to do for instance “(Vid).mp4” and erase the (Vid) part from the tag but I can’t seen to get how to tell the program to do multiples at once with different numerical values.

Second question that you can reference the picture attached, Where you see multiple underscores in a field “Asap Mob\_Asap Rocky\_Asap Ferg - “ & “Nicki Minaj\_Drake\_Lil Wayne - “, I would need to make a replacement that looks like this "Asap Mob Ft. Asap Rocky & Asap Ferg - “ or "Nicki Minaj Ft. Drake & Lil Wayne - “. Is this something that I could easily do with the program, even if multiple variables of Ft. Artist are named meaning some songs have 2 features some songs might have 5 features but I can change the “\_”’s to first “Ft.” then “,”s until the final artist name putting a “& “ in-front of it?

Any any all help would be greatly appreciated. Thank you

 ![Screen Shot 2022-01-24 at 2.23.08 AM](https://community.mp3tag.de/uploads/default/original/2X/b/b292c952c007c2e3d202e1d1f50beb6bf551a970.jpeg)

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 24, 2022, 5:01pm UTC](https://community.mp3tag.de/t/question-on-how-to-complete-this-tag-edit/56036/2 "2022-01-24T17:01:17Z")

</div>

If you want to remove everything from the first opening parentheses to the last closing one, you can use a [Quick Action](https://community.mp3tag.de/t/quick-actions-and-action-groups/51882) _Replace with regular expression_ for field `_FILENAME`, where you replace what is matched using

Regexp: `^(.+?)\s\(.*\)`  
Replace: `$1`

 ![grafik](https://community.mp3tag.de/uploads/default/original/2X/0/0190356025123dc0bee7ebda27f929ea60b7148f.jpeg)

Usually I refrain from commenting on anything regarding handling of featuring artists 😃 It's been answered here on the forums countless times (for the Windows version) and it seems with each answer, a new edge-case or additional requirement pops up.

In your special case, where 3 artists are separated by underscore characters, you can use _Replace with regular expression_ for field `ARTIST`, where you replace what is matched using

Regexp: `^(.+?)_(.+?)_(.+?)$`  
Replace: `$1 Ft. $2 & $3`

 ![grafik](https://community.mp3tag.de/uploads/default/original/2X/c/c5ba9566a960a51bd9828486ea80e3e2805857a7.jpeg)

---

<div class="post-metadata">

### Author: ![HumanJukeBoxDJMO](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/779978/32.png) [@HumanJukeBoxDJMO](https://community.mp3tag.de/u/HumanJukeBoxDJMO)
#### Post date: [January 24, 2022, 5:42pm UTC](https://community.mp3tag.de/t/question-on-how-to-complete-this-tag-edit/56036/3 "2022-01-24T17:42:04Z")

</div>

Wonderful! The first questions formula worked out just great, Thank you..

The second question formula, if I am understanding correctly depending on how many featured artists are on the track, you would need to make the formula match to the pertaining number of artist? Meaning if 3 artists are on the file then the above formula is the way to go, if 5 artists are on the file then the formula would need to look like this:  
Regexp: `^(.+?)_(.+?)_(.+?)_(.+?)_(.+?)$`  
Replace: `$1 Ft. $2, $3, $4 & $5`

---

<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: [January 24, 2022, 5:49pm UTC](https://community.mp3tag.de/t/question-on-how-to-complete-this-tag-edit/56036/4 "2022-01-24T17:49:43Z")

</div>

> [@Florian](#):
>
> countless times (for the Windows version

Perhaps this could be one of the threads to be accounted for:

> [@Regular Expression searching left to right help](https://community.mp3tag.de/t/regular-expression-searching-left-to-right-help/19396):
>
> I have some songs with Artists with multiple commas (supporting artists). I am looking for conditional comparison and replacing. So my artist name would be like: Artist Name, sub-artist1, sub-artist2, subtist-xxx...... I've been manually replacing the first "," with FEAT. and then use an action with regular expression to replace "," with "&". I want it to look like: Artist Name FEAT. sub-artist1 & sub-artist2 & subtist-xxx...... So I can't sort out how to only find the first "," replace i…

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 24, 2022, 6:13pm UTC](https://community.mp3tag.de/t/question-on-how-to-complete-this-tag-edit/56036/5 "2022-01-24T18:13:32Z")

</div>

> [@HumanJukeBoxDJMO](#):
>
> if 3 artists are on the file then the above formula is the way to go, if 5 artists are on the file then the formula would need to look like this:

Yes, but there is also a more general approach as pointed out by @ohrenkino in the linked topic. It involves a Quick Action _Format tag field_ for field `ARTIST` using a format string like

```auto
$replace($regexp($regexp(%artist%,'^([^_]+)_','$1 Ft. '),'_([^_]+)$',' & $1'),'_',', ')

```

The basic idea is that the part before the first underscore `^([^_]+)_` is captured in `$1` and separated using `Ft.`. The part after the last underscore `_([^_]+)$` is captured in `$1` and separated using `&`. All remaining underscores are replaced by `,`

 ![grafik](https://community.mp3tag.de/uploads/default/original/2X/f/f22ef317b9e96a46e82f7668580f22d06dcb6397.jpeg)

---

<div class="post-metadata">

### Author: ![HumanJukeBoxDJMO](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/779978/32.png) [@HumanJukeBoxDJMO](https://community.mp3tag.de/u/HumanJukeBoxDJMO)
#### Post date: [January 24, 2022, 6:47pm UTC](https://community.mp3tag.de/t/question-on-how-to-complete-this-tag-edit/56036/6 "2022-01-24T18:47:35Z")

</div>

Thank you so much! That last formula worked out just perfect!!!

Now finally, is there a way to save these formulas with in the program for faster reference rather than coming back to this thread to copy and past them?

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 24, 2022, 7:02pm UTC](https://community.mp3tag.de/t/question-on-how-to-complete-this-tag-edit/56036/7 "2022-01-24T19:02:03Z")

</div>

Excellent!

> [@HumanJukeBoxDJMO](#):
>
> is there a way to save these formulas with in the program for faster reference

You can create dedicated [Action Groups](https://community.mp3tag.de/t/quick-actions-and-action-groups/51882) for the individual tasks and apply them either via the action groups window or from the _Actions_ menu.

 ![grafik](https://community.mp3tag.de/uploads/default/original/2X/e/e61edb02031f9918867124b00bcd0826348d8a25.jpeg)

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 26, 2022, 5:09am UTC](https://community.mp3tag.de/t/question-on-how-to-complete-this-tag-edit/56036/8 "2022-01-26T05:09:56Z")

</div>

2 posts were split to a new topic: [Remove `###Bpm` from end of filename](https://community.mp3tag.de/t/remove-bpm-from-end-of-filename/56058)

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 26, 2022, 5:06am UTC](https://community.mp3tag.de/t/question-on-how-to-complete-this-tag-edit/56036/10 "2022-01-26T05:06:33Z")

</div>

A post was split to a new topic: [Import Artist - Title from filename](https://community.mp3tag.de/t/import-artist-title-from-filename/56057)

---

<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 25, 2022, 5:07am UTC](https://community.mp3tag.de/t/question-on-how-to-complete-this-tag-edit/56036/11 "2022-02-25T05:07:04Z")

</div>

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