# Help with a regular expression

**URL:** <https://community.mp3tag.de/t/help-with-a-regular-expression/43007>\
**Category:** Support\
**Created:** [September 18, 2018, 9:57pm UTC](https://community.mp3tag.de/t/help-with-a-regular-expression/43007 "2018-09-18T21:57:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chad](https://community.mp3tag.de/user_avatar/community.mp3tag.de/chad/32/5696_2.png) [@chad](https://community.mp3tag.de/u/chad)\
**Post date:** [September 18, 2018, 9:57pm UTC](https://community.mp3tag.de/t/help-with-a-regular-expression/43007/1 "2018-09-18T21:57:18Z")

</div>

Here is how the track titles currently read:

Sinfonia No. 2, cm, BWV 788  
Sinfonia No. 3, d, BWV 789

I want to change them to:

Sinfonia No. 2 in cm, BWV 788  
Sinfonia No. 3 in d, BWV 789

Here is my regular expression that I thought should work. I replace:  
(/d+), ([abcdefg#m]+)  
...with:  
$1 in $2

Unfortunately, it doesn't work - nothing happens. I have verified that the action type is "regular expression" and it's searching in the correct tag field ("Title").

---

<div class="post-metadata">

**Author:** ![ryerman](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ryerman/32/5285_2.png) [@ryerman](https://community.mp3tag.de/u/ryerman)\
**Post date:** [September 19, 2018, 12:41am UTC](https://community.mp3tag.de/t/help-with-a-regular-expression/43007/2 "2018-09-19T00:41:50Z")

</div>

Maybe this:

Regex: `'(.+\d+),(.+),(.+)'`  
Replace with: `$1 in$2','$3`

---

<div class="post-metadata">

**Author:** ![chad](https://community.mp3tag.de/user_avatar/community.mp3tag.de/chad/32/5696_2.png) [@chad](https://community.mp3tag.de/u/chad)\
**Post date:** [September 19, 2018, 1:43am UTC](https://community.mp3tag.de/t/help-with-a-regular-expression/43007/3 "2018-09-19T01:43:09Z")

</div>

That would produce too many false positives - I'm going to use these scripts for all classical CDs to come in my collection. But you still helped me... you know what was wrong??? I put /d instead of \d.

= faceplant =

---

<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:27pm UTC](https://community.mp3tag.de/t/help-with-a-regular-expression/43007/4 "2026-02-09T12:27:40Z")

</div>


