# Extract number in filname, replace track number

**URL:** https://community.mp3tag.de/t/extract-number-in-filname-replace-track-number/62958
**Category:** Mac
**Created:** [December 2, 2023, 1:04am UTC](https://community.mp3tag.de/t/extract-number-in-filname-replace-track-number/62958 "2023-12-02T01:04:36Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ryerman](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ryerman/32/5285_2.png) [@ryerman](https://community.mp3tag.de/u/ryerman)
#### Post date: [December 2, 2023, 4:15am UTC](https://community.mp3tag.de/t/extract-number-in-filname-replace-track-number/62958/2 "2023-12-02T04:15:48Z")

</div>

> [@Rename Files and Import Tags from Files](https://community.mp3tag.de/t/rename-files-and-import-tags-from-files/51720#import-tags-from-files-4):
>
> Mp3tag provides a variety of possibilities to get tag information from parts of the filename or to rename files based on the information stored in the tag of a file. The base concept behind all converters in Mp3tag is the format string, which describes a pattern or template of a filename. A format string consists of any characters and predefined placeholders or scripting functions. Every placeholder begins with the percent sign %, followed by a tag field name and ends with the percent sign. …

---

_[View the full topic](https://community.mp3tag.de/t/extract-number-in-filname-replace-track-number/62958)._
