# Need assist with a Replace with Regex

**URL:** https://community.mp3tag.de/t/need-assist-with-a-replace-with-regex/69159
**Category:** Support
**Created:** [July 20, 2025, 3:50pm UTC](https://community.mp3tag.de/t/need-assist-with-a-replace-with-regex/69159 "2025-07-20T15:50:22Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![HaywoodJ](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/e9a140/32.png) [@HaywoodJ](https://community.mp3tag.de/u/HaywoodJ)
#### Post date: [July 20, 2025, 3:50pm UTC](https://community.mp3tag.de/t/need-assist-with-a-replace-with-regex/69159/1 "2025-07-20T15:50:22Z")

</div>

Hey everyone, this might be easy but I cant quite figure it out. Say I have a song that looks like this:

Artist feat. someone

What additional expressions do I need to add so that it adds the closing bracket after the someone name so it appears like this?

Artist (Feat. someone)

I can figure out the first parenthesis and the capitilzation with the replace but dont know how to tell it to add the closing parenthesis after the featured artist. I thought it was something like \s but I havent been able to get it to work. Can someone help me out?

---

<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: [July 20, 2025, 3:52pm UTC](https://community.mp3tag.de/t/need-assist-with-a-replace-with-regex/69159/2 "2025-07-20T15:52:44Z")

</div>

> [@HaywoodJ](#):
>
> I can figure out the first parenthesis and the capitilzation

So what does your expression look like so far?

---

<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: [July 21, 2025, 6:36am UTC](https://community.mp3tag.de/t/need-assist-with-a-replace-with-regex/69159/3 "2025-07-21T06:36:27Z")

</div>

> [@HaywoodJ](#):
>
> but dont know how to tell it to add the closing parenthesis after the featured artist

Without knowing your current regular expression, we can only refer you to the documentation on [Literals](https://docs.mp3tag.de/regex/#literals):

> ## Literals
> 
> All characters except `.|*?+(){}[]^$`.  
> These characters are literals when preceded by a `\`.

> [@HaywoodJ](#):
>
> I thought it was something like \s

From the above linked documentation:

> `\s` matches any whitespace character

---

<div class="post-metadata">

### Author: ![HaywoodJ](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/e9a140/32.png) [@HaywoodJ](https://community.mp3tag.de/u/HaywoodJ)
#### Post date: [July 21, 2025, 8:04pm UTC](https://community.mp3tag.de/t/need-assist-with-a-replace-with-regex/69159/4 "2025-07-21T20:04:32Z")

</div>

Sorry for the late response; So I dont have a regex setup for this just yet because I cant figure out the expression. Right now all I have is a simple replace setup for the first half and then I manually add the last closing parenthesis and I am trying to find out how to setup the regex so I dont have to do the last part manually anymore.

Replace: TITLE  
Original: feat.  
Replace with: (Feat.

This takes the original file of this "Artist feat. someone" and turns it into this "Artist (Feat. someone" and I just need to figure out how to add the closing parenthesis

---

<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: [July 21, 2025, 8:38pm UTC](https://community.mp3tag.de/t/need-assist-with-a-replace-with-regex/69159/5 "2025-07-21T20:38:57Z")

</div>

You could add a further action of the type Format value for TITLE  
Format string: `%title%)`

If you insist on a regular expression, use Format value for TITLE  
Format string: `$regexp(%title%,(.*) feat. (.*),'$1 (Feat. $2)')`

---

<div class="post-metadata">

### Author: ![HaywoodJ](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/e9a140/32.png) [@HaywoodJ](https://community.mp3tag.de/u/HaywoodJ)
#### Post date: [July 21, 2025, 9:22pm UTC](https://community.mp3tag.de/t/need-assist-with-a-replace-with-regex/69159/6 "2025-07-21T21:22:27Z")

</div>

Awesome! Format value is what I should have been using instead of the regexp in the Actions menu. Makes things so much easier to handle; I appreciate it!!!!

---

<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: [August 20, 2025, 9:22pm UTC](https://community.mp3tag.de/t/need-assist-with-a-replace-with-regex/69159/7 "2025-08-20T21:22:51Z")

</div>

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