# Copy filename to title, removing leading numbers

**URL:** <https://community.mp3tag.de/t/copy-filename-to-title-removing-leading-numbers/60943>\
**Category:** Support\
**Created:** [May 12, 2023, 4:23am UTC](https://community.mp3tag.de/t/copy-filename-to-title-removing-leading-numbers/60943 "2023-05-12T04:23:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AudioBabble](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/41988e/32.png) [@AudioBabble](https://community.mp3tag.de/u/AudioBabble)\
**Post date:** [May 12, 2023, 4:23am UTC](https://community.mp3tag.de/t/copy-filename-to-title-removing-leading-numbers/60943/1 "2023-05-12T04:23:55Z")

</div>

How would I do this with Mp3Tag?

My filenames are 01 Title Of Song -- can go up to three digits if a multidisc, e.g 101 / 201, etc

So... I need to remove ANY number characters, plus the leading space... and copy what's left to the Title field.

Thanks!

---

<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:** [May 12, 2023, 5:28am UTC](https://community.mp3tag.de/t/copy-filename-to-title-removing-leading-numbers/60943/2 "2023-05-12T05:28:59Z")

</div>

Try Convert\>Filename-Tag  
Mask: %track% %title%

Also, see the section in the documentation about first steps

> **[First Steps – Mp3tag Documentation](https://docs.mp3tag.de/getting-started/first-steps/#importing-parts-of-the-file-name-to-the-tag)**
>
> A collection of tasks with step-by-step instructions intended for novice users of Mp3tag. Mp3tag is the universal Tag Editor.

---

<div class="post-metadata">

**Author:** ![AudioBabble](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/41988e/32.png) [@AudioBabble](https://community.mp3tag.de/u/AudioBabble)\
**Post date:** [May 12, 2023, 11:55am UTC](https://community.mp3tag.de/t/copy-filename-to-title-removing-leading-numbers/60943/3 "2023-05-12T11:55:53Z")

</div>

Thank you!

I managed what I wanted via a two step process:

1. Convert \> Filename-Tag  
Mask: %title%  
-- this puts my filename into the title field (still with leading track number)

2. Actions \> Actions (quick) \> Replace with regular expression  
Field: \_TAG  
Regular Expression: ^\s\*[0-9]+\s\*

Numbers gone from title field!

---

<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:** [May 12, 2023, 12:14pm UTC](https://community.mp3tag.de/t/copy-filename-to-title-removing-leading-numbers/60943/4 "2023-05-12T12:14:01Z")

</div>

You could have done it in a single step:  
Try Convert\>Filename-Tag  
Mask: %dummy% %title%

I wonder why you wanted to throw away existing data....

---

<div class="post-metadata">

**Author:** ![AudioBabble](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/41988e/32.png) [@AudioBabble](https://community.mp3tag.de/u/AudioBabble)\
**Post date:** [May 12, 2023, 12:26pm UTC](https://community.mp3tag.de/t/copy-filename-to-title-removing-leading-numbers/60943/5 "2023-05-12T12:26:18Z")

</div>

Thanks for the %dummy% tip -- that's much simpler.

Not throwing away anything -- my filenames are for sequential listing in file browser: [track no.] [Title] -- I'm keeping those as they are.

But obviously, I don't want the track number in the Title tag.

I then use the track number wizard to populate the Track No. tag.

---

<div class="post-metadata">

**Author:** ![AudioBabble](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/41988e/32.png) [@AudioBabble](https://community.mp3tag.de/u/AudioBabble)\
**Post date:** [May 12, 2023, 12:39pm UTC](https://community.mp3tag.de/t/copy-filename-to-title-removing-leading-numbers/60943/6 "2023-05-12T12:39:56Z")

</div>

> [@AudioBabble](#):
>
> So... I need to remove ANY number characters, plus the leading space... and copy what's left to the Title field.

... yeah sorry, that's makes it sound like I want to get rid of the numbers from the filename... not what I meant!

---

<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:** [June 11, 2023, 12:40pm UTC](https://community.mp3tag.de/t/copy-filename-to-title-removing-leading-numbers/60943/7 "2023-06-11T12:40:31Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
