# Replace with Regular Expression on Title

**URL:** <https://community.mp3tag.de/t/replace-with-regular-expression-on-title/50316>\
**Category:** Support\
**Created:** [September 28, 2020, 2:01pm UTC](https://community.mp3tag.de/t/replace-with-regular-expression-on-title/50316 "2020-09-28T14:01:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pingpongitore](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pingpongitore/32/8123_2.png) [@pingpongitore](https://community.mp3tag.de/u/pingpongitore)\
**Post date:** [September 28, 2020, 2:01pm UTC](https://community.mp3tag.de/t/replace-with-regular-expression-on-title/50316/1 "2020-09-28T14:01:22Z")

</div>

Hi Everyone,  
I recently upgraded to the latest version, 3.02 and the action I had been using for years to clean up the title of my mp3 and mp4's no longer functions. I had an action setup to replace with regular expression to remove the first 3 characters of a title so that something like this:

"01-Name of Song"

would be transformed into this:

"Name of Song"

I've not changed anything about the action at all for years and it stopped processing files after this latest version as far as I can tell. Did something change with regex processing and file titles? Here is what my regular expression looks like:

Regular Expression "TITLE": "^.(3)" -\> ""

Any help with this would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![pingpongitore](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pingpongitore/32/8123_2.png) [@pingpongitore](https://community.mp3tag.de/u/pingpongitore)\
**Post date:** [September 28, 2020, 2:13pm UTC](https://community.mp3tag.de/t/replace-with-regular-expression-on-title/50316/2 "2020-09-28T14:13:36Z")

</div>

I guess something did change. I did some more reading on regex elsewhere on the internet and found that I can use "^..." instead. I wonder what was changed in Mp3Tag to stop processing "^.(3)" for this.

---

<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:** [September 28, 2020, 2:13pm UTC](https://community.mp3tag.de/t/replace-with-regular-expression-on-title/50316/3 "2020-09-28T14:13:43Z")

</div>

> [@pingpongitore](#):
>
> Regular Expression "TITLE": "^.(3)" -\> ""

I doubt that this has ever fullfilled its purpose. The round brackets encapsulate a pattern that will be re-used later.  
It should be:  
`^.{3}-`  
BUT:  
If you want to remove any number, try  
`^\d+-`  
which would also cope with 3-digit-numbers  
I also see that even though the string is `01-Name of Song` that the expression that you use has a space between the first 3 characters and the hyphen.  
So perhaps  
`^\d+\s*-\s*`  
would be even more flexible.

---

<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:** [September 28, 2020, 2:15pm UTC](https://community.mp3tag.de/t/replace-with-regular-expression-on-title/50316/4 "2020-09-28T14:15:26Z")

</div>

> [@pingpongitore](#):
>
> I wonder what was changed in Mp3Tag

I can assure you that nothing has changed.  
The syntax that you used does not serve the purpose now and never has.

---

<div class="post-metadata">

**Author:** ![pingpongitore](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pingpongitore/32/8123_2.png) [@pingpongitore](https://community.mp3tag.de/u/pingpongitore)\
**Post date:** [September 28, 2020, 2:15pm UTC](https://community.mp3tag.de/t/replace-with-regular-expression-on-title/50316/5 "2020-09-28T14:15:29Z")

</div>

Thanks for the reply and information, it was working for years. I had built the action based on an old post I had found here. I appreciate the info you've given on a different method as well. I'm going to save that and give it a shot too. Thanks again!

---

<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:** [October 28, 2020, 2:15pm UTC](https://community.mp3tag.de/t/replace-with-regular-expression-on-title/50316/6 "2020-10-28T14:15:31Z")

</div>

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