# Copy Track number in filename to track tag

**URL:** <https://community.mp3tag.de/t/copy-track-number-in-filename-to-track-tag/11802>\
**Category:** Support\
**Created:** [March 31, 2011, 9:49pm UTC](https://community.mp3tag.de/t/copy-track-number-in-filename-to-track-tag/11802 "2011-03-31T21:49:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kittmaster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/kittmaster/32/14793_2.png) [@kittmaster](https://community.mp3tag.de/u/kittmaster)\
**Post date:** [March 31, 2011, 9:49pm UTC](https://community.mp3tag.de/t/copy-track-number-in-filename-to-track-tag/11802/1 "2011-03-31T21:49:15Z")

</div>

I can get the filename itself to pass into the track tag via actions with format value of \> field : track to format string : %\_filename%

That will force file name into track tag. But all I want is the 01 part of the file name to enter into the track tag.

01 (Tony Toni Tone) Feels Good.mp3

I've tried ^.{2}%\_filename% to the field and variants to %track% but nothing seems to work.

What am I missing?

Can someone help me out?

Thanks

---

<div class="post-metadata">

**Author:** ![kittmaster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/kittmaster/32/14793_2.png) [@kittmaster](https://community.mp3tag.de/u/kittmaster)\
**Post date:** [March 31, 2011, 11:24pm UTC](https://community.mp3tag.de/t/copy-track-number-in-filename-to-track-tag/11802/2 "2011-03-31T23:24:35Z")

</div>

I figured it out.....

New action: Guessing Value

Source format \> %\_filename\_ext%

Guessing Pattern \> %track% %dummy%

Filled in track with the leading track number with space delimiter.

🙂

---

<div class="post-metadata">

**Author:** ![MarcoMtz](https://community.mp3tag.de/user_avatar/community.mp3tag.de/marcomtz/32/8794_2.png) [@MarcoMtz](https://community.mp3tag.de/u/MarcoMtz)\
**Post date:** [January 28, 2021, 7:37pm UTC](https://community.mp3tag.de/t/copy-track-number-in-filename-to-track-tag/11802/3 "2021-01-28T19:37:37Z")

</div>

Thank you! This helped me too.

---

<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:23pm UTC](https://community.mp3tag.de/t/copy-track-number-in-filename-to-track-tag/11802/4 "2026-02-09T12:23:01Z")

</div>


