# Regex to remove numbers in the middle

**URL:** <https://community.mp3tag.de/t/regex-to-remove-numbers-in-the-middle/43968>\
**Category:** Support\
**Created:** [December 22, 2018, 10:24am UTC](https://community.mp3tag.de/t/regex-to-remove-numbers-in-the-middle/43968 "2018-12-22T10:24:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![seamoon](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/db5fbb/32.png) [@seamoon](https://community.mp3tag.de/u/seamoon)\
**Post date:** [December 22, 2018, 10:24am UTC](https://community.mp3tag.de/t/regex-to-remove-numbers-in-the-middle/43968/1 "2018-12-22T10:24:45Z")

</div>

How can I convert this file name  
Chris Botti - 05 - The Open Touch  
to  
Chris Botti - The Open Touch

---

<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:** [December 22, 2018, 10:29am UTC](https://community.mp3tag.de/t/regex-to-remove-numbers-in-the-middle/43968/2 "2018-12-22T10:29:53Z")

</div>

You can rewrite the filename with the function Convert\>Tag-Filename with the  
Format String: %artist% - %title%  
provided that the tags are filled.  
If they are not filled yet, I would recommend that you retrieve the information from the filename first with the function Convert\>Filename-Tag  
Format string: %artist% - %track% - %title%

---

<div class="post-metadata">

**Author:** ![seamoon](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/db5fbb/32.png) [@seamoon](https://community.mp3tag.de/u/seamoon)\
**Post date:** [December 22, 2018, 10:46am UTC](https://community.mp3tag.de/t/regex-to-remove-numbers-in-the-middle/43968/3 "2018-12-22T10:46:37Z")

</div>

I mean in case tag fields are empty.

---

<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:** [December 22, 2018, 10:52am UTC](https://community.mp3tag.de/t/regex-to-remove-numbers-in-the-middle/43968/4 "2018-12-22T10:52:10Z")

</div>

Yes. Why do you want to manipulate the filename only and throw away information that could easily be saved in the tags? Any information that you discard is very hard to get back again.  
I mean, why do you use a tagging program if you only edit the filename - there are numerous utilties around that help you to rename files. So I would fill the tags first - as described.  
Even if you do not want to keep the track number, you can (first) use the function Convert\>Filename-Tag, only this time with the  
Format String: %artist% - %dummy% - %title%

And if you still want to treat only the filename, I would recommend the function Convert\>Filename-Filename  
Source: %1 - %2 - %3  
Target: %1 - %3

---

<div class="post-metadata">

**Author:** ![seamoon](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/db5fbb/32.png) [@seamoon](https://community.mp3tag.de/u/seamoon)\
**Post date:** [December 22, 2018, 11:28am UTC](https://community.mp3tag.de/t/regex-to-remove-numbers-in-the-middle/43968/5 "2018-12-22T11:28:59Z")

</div>

I use it only for manually selected ones, not the whole collection. Thank you very much for you help.

---

<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/regex-to-remove-numbers-in-the-middle/43968/6 "2026-02-09T12:27:49Z")

</div>


