# Get Track Number From File Name w/Skip

**URL:** <https://community.mp3tag.de/t/get-track-number-from-file-name-w-skip/47067>\
**Category:** Support\
**Created:** [November 16, 2019, 5:27pm UTC](https://community.mp3tag.de/t/get-track-number-from-file-name-w-skip/47067 "2019-11-16T17:27:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fuentecigar](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/e68b1a/32.png) [@fuentecigar](https://community.mp3tag.de/u/fuentecigar)\
**Post date:** [November 16, 2019, 5:27pm UTC](https://community.mp3tag.de/t/get-track-number-from-file-name-w-skip/47067/1 "2019-11-16T17:27:42Z")

</div>

I have a large selection of tracks that I need to get the track number. I wrote a little script but it's not doing what I want. The file name is like this:

[01]-Call Me The Breeze

I need to get the track number from it. All I need is the "1". I keep getting "[01]-". How do I get rid of the brackets and the dash?

---

<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:** [November 16, 2019, 5:36pm UTC](https://community.mp3tag.de/t/get-track-number-from-file-name-w-skip/47067/2 "2019-11-16T17:36:42Z")

</div>

It would have been even easier if you had shown us the

> [@fuentecigar](#):
>
> little script

Use the function Convert\>Filename-Tag  
Pattern: `[%track%]-%dummy%`  
After you have the data in the field TRACK, you can format it as you like (e.g. to remove the leading zeros).

---

<div class="post-metadata">

**Author:** ![fuentecigar](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/e68b1a/32.png) [@fuentecigar](https://community.mp3tag.de/u/fuentecigar)\
**Post date:** [November 16, 2019, 5:50pm UTC](https://community.mp3tag.de/t/get-track-number-from-file-name-w-skip/47067/3 "2019-11-16T17:50:02Z")

</div>

Thank you. I tried that and it works.

---

<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:28pm UTC](https://community.mp3tag.de/t/get-track-number-from-file-name-w-skip/47067/4 "2026-02-09T12:28:20Z")

</div>


