# Find-\>Replace and Padding Track Length

**URL:** https://community.mp3tag.de/t/find-replace-and-padding-track-length/65800
**Category:** Support
**Created:** [September 1, 2024, 8:45pm UTC](https://community.mp3tag.de/t/find-replace-and-padding-track-length/65800 "2024-09-01T20:45:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![seed1000000](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c5a1d2/32.png) [@seed1000000](https://community.mp3tag.de/u/seed1000000)
#### Post date: [September 1, 2024, 8:45pm UTC](https://community.mp3tag.de/t/find-replace-and-padding-track-length/65800/1 "2024-09-01T20:45:19Z")

</div>

Two things I could use some help with...

Is there a simple Find-\>Replace option that doesn't depend on using regex? Let's say for instance that every title ends with " (Instrumental)" and I want to remove that from every title, including the leading space. Is there an easy way to do that?

Unrelated, when using the Tag - Filename conversion I'm wondering if there's a way to conform the padding of the track numbers so they're all the same number of characters. So if I had an album that was 5 total tracks and used the Tag - Filename conversion with %track% %title%, the resulting filenames would look like:

1 Track One  
2 Track Two  
3 Track Three

But if I had an album that had 12 total tracks, now we pad those initial tracks with a leading 0, such that:

01 Track One  
02 Track Two  
...  
11 Track Eleven  
12 Track Twelve

And if I had a really long album with over 100 tracks, we'd need even more padding, such that:

001 Track One  
002 Track Two  
...  
101 Track One Hundred One  
102 Track One Hundred Two

Hopefully what I'm asking makes sense. Thanks for the help!

---

<div class="post-metadata">

### Author: ![rboss](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/5f9b8f/32.png) [@rboss](https://community.mp3tag.de/u/rboss)
#### Post date: [September 1, 2024, 9:51pm UTC](https://community.mp3tag.de/t/find-replace-and-padding-track-length/65800/2 "2024-09-01T21:51:03Z")

</div>

I can help with no. 2:

If you have `%totaltracks%` present in your file(s), you can use

> $num(%track%,$len(%totaltracks%)) %title%

This reads: pad `%track%` with leading zeroes, until digit count matches that of `%totaltracks%`; and `%title%`

You can also find a list of available functions here:

> **[Scripting Functions – Mp3tag Documentation](https://docs.mp3tag.de/scripting/)**
>
> Documentation on Mp3tag's scripting functions. Mp3tag is the universal Tag Editor.

Hope this helps.

---

<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: [September 2, 2024, 4:59am UTC](https://community.mp3tag.de/t/find-replace-and-padding-track-length/65800/3 "2024-09-02T04:59:52Z")

</div>

> [@seed1000000](#):
>
> Is there a simple Find-\>Replace option that doesn't depend on using regex? Let's say for instance that every title ends with " (Instrumental)"

Create an action of the type "Replace" for TITLE  
Original: (Instrumental)  
Replace with:  
(leave empty)

More about actions, see the documentation:

> **[Mp3tag Documentation](https://docs.mp3tag.de/)**
>
> Mp3tag is the universal Tag Editor. It supports editing of metadata and cover art for many different audio and video formats (MP3, MP4, FLAC, WAV, ...), file renaming, metadata import and repeatable actions.

---

<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:30pm UTC](https://community.mp3tag.de/t/find-replace-and-padding-track-length/65800/4 "2026-02-09T12:30:20Z")

</div>


