# Replacing w/ Regular Expressions Problem

**URL:** https://community.mp3tag.de/t/replacing-w-regular-expressions-problem/9478
**Category:** Support
**Created:** [December 5, 2009, 6:00am UTC](https://community.mp3tag.de/t/replacing-w-regular-expressions-problem/9478 "2009-12-05T06:00:17Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![bossvt](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/7bcc69/32.png) [@bossvt](https://community.mp3tag.de/u/bossvt)
#### Post date: [December 5, 2009, 6:00am UTC](https://community.mp3tag.de/t/replacing-w-regular-expressions-problem/9478/1 "2009-12-05T06:00:17Z")

</div>

How's it going everyone.

Having a bit of trouble replacing certain phrases in filenames.

Basically I want to remove the following text (_Prod. By XXXX)_ with _XXXX_ being characters / name of the person who produced the file. For this example I want to remove _(Prod. By Lil Jon)_

Here is what I have done so far ;

Created a new action, replace w/ regular expression

Field: \_ALL  
Regular expression: (Prod. By [a-z])  
Replace matches with: - I have left this blank as I want it replaced w/ nothing

Now if I run that all it removes is "Prod. By L" and I'm left with (il Jon) and I've tried adding the this expression _(Prod. By [a-z]+\s+\u+\l+.)_ and I'm left w/ (

But if i try on another file it wont remove anything ?

Any ideas ?

Cheers.

Thank alot!

---

<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: [December 5, 2009, 7:34am UTC](https://community.mp3tag.de/t/replacing-w-regular-expressions-problem/9478/2 "2009-12-05T07:34:34Z")

</div>

> [@bossvt](#):
>
> ... Basically I want to remove the following text (_Prod. By XXXX)_ with _XXXX_ being characters / name of the person who produced the file. For this example I want to remove _(Prod. By Lil Jon)_ ...

There are some links about using of regular expressions in general:  
[Artist sortieren mit "The"](https://community.mp3tag.de/t/9347/6)

To avoid unwanted side effects I would not use the special Mp3tag system field \_ALL, but the one and only tag field resp. Mp3tag system field which can carry the string in question, in your case it seems to be the \_FILENAME system field (or the TITLE tag field?).

So your "replace using regular expression" action could be ...  
Field:   
Regular expression: (Prod. By .+)  
Replace matches with:

Good luck!

DD.20091205.0934.CET

---

<div class="post-metadata">

### Author: ![RevRagnarok](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/b487fb/32.png) [@RevRagnarok](https://community.mp3tag.de/u/RevRagnarok)
#### Post date: [December 5, 2009, 12:32pm UTC](https://community.mp3tag.de/t/replacing-w-regular-expressions-problem/9478/3 "2009-12-05T12:32:23Z")

</div>

DetlevD got it. The last part means "anything up to and including ')' "

Your biggest problem was that . ( and ) all have special meanings in RegEx and you need to escape them. Please follow-up letting us know if it worked or not.

---

<div class="post-metadata">

### Author: ![bossvt](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/7bcc69/32.png) [@bossvt](https://community.mp3tag.de/u/bossvt)
#### Post date: [December 8, 2009, 6:46am UTC](https://community.mp3tag.de/t/replacing-w-regular-expressions-problem/9478/4 "2009-12-08T06:46:44Z")

</div>

Cheers tried that and it all worked! Thanks alot, much 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: [February 9, 2026, 12:22pm UTC](https://community.mp3tag.de/t/replacing-w-regular-expressions-problem/9478/5 "2026-02-09T12:22:00Z")

</div>


