# Delete everything after 2nd feature artist

**URL:** https://community.mp3tag.de/t/delete-everything-after-2nd-feature-artist/68249
**Category:** Support
**Created:** [April 18, 2025, 6:45pm UTC](https://community.mp3tag.de/t/delete-everything-after-2nd-feature-artist/68249 "2025-04-18T18:45:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mbrazil05](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/9d8465/32.png) [@mbrazil05](https://community.mp3tag.de/u/mbrazil05)
#### Post date: [April 18, 2025, 6:45pm UTC](https://community.mp3tag.de/t/delete-everything-after-2nd-feature-artist/68249/1 "2025-04-18T18:45:41Z")

</div>

can someone help tweak my script to remove everything after the 2nd featured artist in the artiest field. here is an example of what im trying to do.

![image](https://community.mp3tag.de/uploads/default/original/3X/d/2/d2aab5fc60274d4717a57ad02000094cb0e999a6.png)

Here is my crappy script that seems to erase everything.

FORMAT VALUE  
FIELD: ARTIST  
FORMAT STRING: `$regexp(%ARTIST%,^(.*?[Ff][Ee][Aa][Tt].*?[Ff][Ee][Aa][Tt]).*,$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: [April 19, 2025, 6:58am UTC](https://community.mp3tag.de/t/delete-everything-after-2nd-feature-artist/68249/3 "2025-04-19T06:58:59Z")

</div>

You could try:  
Format string: `$regexp($regexp(%artist%,(.*?Feat.*Feat.*?).*,$1,1),(.*) Feat.*?,$1,1)`

---

<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: [May 24, 2025, 8:44am UTC](https://community.mp3tag.de/t/delete-everything-after-2nd-feature-artist/68249/4 "2025-05-24T08:44:54Z")

</div>

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