# Removing different styles of track numbering

**URL:** <https://community.mp3tag.de/t/removing-different-styles-of-track-numbering/15348>\
**Category:** Support\
**Created:** [January 2, 2014, 12:33pm UTC](https://community.mp3tag.de/t/removing-different-styles-of-track-numbering/15348 "2014-01-02T12:33:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![GlobalRadar](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/6a8cbe/32.png) [@GlobalRadar](https://community.mp3tag.de/u/GlobalRadar)\
**Post date:** [January 2, 2014, 12:33pm UTC](https://community.mp3tag.de/t/removing-different-styles-of-track-numbering/15348/1 "2014-01-02T12:33:57Z")

</div>

hello lads,

I have filenames with different styles of track numbering like for eg: "01." & some files wud have "01-" & some others have "01\_" . . . i wanna remove all 3 kinds of track numbering in a single go . ..  
Can i set any action for this . ..

Right now i'm using "Replace" as action & replacing "01." & leaving the "Replace with" section empty. so tht removes the track number 01. But i have to do this for 02. also & so on.

But this is just one style of numbering .. for another style (01-) i have to make another set of actions and then also another set of actions for the third style (01\_)

Basically thts creating a lotta actions ... but can i do it for all three styles (01. & 01- & 01\_) all at the same time with single action or may be say 3 actions.

---

<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:** [January 2, 2014, 12:48pm UTC](https://community.mp3tag.de/t/removing-different-styles-of-track-numbering/15348/2 "2014-01-02T12:48:54Z")

</div>

Create an action of the type "Replace with regular expression".  
\d stands for any kind of number  
\d+ stands for a sequence of numbers  
the ^ represents the start of a field  
. represents any kind of character  
If you are sure that there are always 2 digits followed by any kind of character then use as search string:

^\d\d.  
if you are unsure about the 2 digits use:  
\d+.

Leave the replace string empty.

Problem might be that treating a filename like

1. New song  
would lead to a leading blank. So perhaps you create an action group with 2 actions of the type "Replace with regular expression", the first with  
\d+.\s  
the second with  
\d+.

---

<div class="post-metadata">

**Author:** ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)\
**Post date:** [January 2, 2014, 1:20pm UTC](https://community.mp3tag.de/t/removing-different-styles-of-track-numbering/15348/3 "2014-01-02T13:20:31Z")

</div>

> [@GlobalRadar](#):
>
> have "01-" & some others have "01\_" . . . i wanna remove all 3 kinds of track numbering in a single go . ..  
> Can i set any action for this . ..

**A regular expression like:**  
^\d+\s\*[\_|-|.]\s\*

Will do all the 3 types of text string you mention.  
^ start of string  
\d+ a digit but a delimiter between 1 and infinity  
\s\* a whitespace character with delimiter between 0 and infinity  
[\_|-|.] match any of the characters you described above  
\s\* see above

That should do your trick. Make sure the ^ is at the start as it is very important.

---

<div class="post-metadata">

**Author:** ![GlobalRadar](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/6a8cbe/32.png) [@GlobalRadar](https://community.mp3tag.de/u/GlobalRadar)\
**Post date:** [January 2, 2014, 7:18pm UTC](https://community.mp3tag.de/t/removing-different-styles-of-track-numbering/15348/4 "2014-01-02T19:18:33Z")

</div>

**@ ohrenkinoooooo**... u rock man . . thxn brov .. 🙂  
I have just one more doubt . . i'm searching for it .. if i dont get the answer, hope u can solve it again for me...

**@ stevehero**. .. thnx mate but i didnt tried ur one coz . ... 1. i didnt know how to use a regular expression without using an action . . i mean is there something like a coding page in Mp3tag where u write the regular expressions . . i have no clue bout tht .. &  
2. i wanted to make an action for it.  
But i really really appreciate u responding . . thxn a ton mate .. 🙂

---

<div class="post-metadata">

**Author:** ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)\
**Post date:** [January 2, 2014, 8:55pm UTC](https://community.mp3tag.de/t/removing-different-styles-of-track-numbering/15348/5 "2014-01-02T20:55:27Z")

</div>

You can add an action with the replace with regular expression action. See FAQ for this and enter the following.

Field: _FILENAME  
Regexp: ^\d+\s\*[_|-|.]\s\*  
Replace with: leave blank.

---

<div class="post-metadata">

**Author:** ![JJ\_Johnson](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jj_johnson/32/67_2.png) [@JJ\_Johnson](https://community.mp3tag.de/u/JJ_Johnson)\
**Post date:** [January 2, 2014, 10:11pm UTC](https://community.mp3tag.de/t/removing-different-styles-of-track-numbering/15348/6 "2014-01-02T22:11:02Z")

</div>

You don't necessarily need a complicated regular expression to pick the track number out of the filename and put it back. If the track numbers are correct within the TRACK field, then you only need to rewrite the filename.

Create an action group with two actions.

1. First, clean up the TRACK number field, just to be sure it also doesn't contain anything like periods, dashes or leading zeroes.

_Action type:_ **Format value**  
_Field:_ **TRACK**  
_Format string:_ **$fmtNum(%track%)**

1. Then rewrite your filename. (Modify the format string to include artist, album name, or anything else you like.)

_Action type:_ **Format value**  
_Field:_ **\_FILENAME**  
_Format string:_ **$num(%track%,2) %title%**

---

<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:24pm UTC](https://community.mp3tag.de/t/removing-different-styles-of-track-numbering/15348/7 "2026-02-09T12:24:50Z")

</div>

Closed on February 9, 2026, 12:24pm UTC


