# How to remove track from filename?

**URL:** https://community.mp3tag.de/t/how-to-remove-track-from-filename/8623
**Category:** Support
**Created:** [July 18, 2009, 6:48am UTC](https://community.mp3tag.de/t/how-to-remove-track-from-filename/8623 "2009-07-18T06:48:47Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [July 19, 2009, 3:43am UTC](https://community.mp3tag.de/t/how-to-remove-track-from-filename/8623/5 "2009-07-19T03:43:53Z")

</div>

> [@Tweak322](#):
>
> I want the the track number, period and the first hyphen removed from the filename

This expression removes leading numbers, dots, hyphens and also space characters from the filename.

**$regexp(%\_FILENAME%,'\[1\]+(.\*)',$1)**

Use it with "[Alt-1] Tag-Filename" or with an action "Format value".

DD.20090719.0747.CEST

* * *

1. \d.-

---

_[View the full topic](https://community.mp3tag.de/t/how-to-remove-track-from-filename/8623)._
