# Import Tags from file name

**URL:** https://community.mp3tag.de/t/import-tags-from-file-name/9319
**Category:** Support
**Created:** [November 12, 2009, 1:09pm UTC](https://community.mp3tag.de/t/import-tags-from-file-name/9319 "2009-11-12T13:09:48Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![bashdabash](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/91b2a8/32.png) [@bashdabash](https://community.mp3tag.de/u/bashdabash)
#### Post date: [November 12, 2009, 1:09pm UTC](https://community.mp3tag.de/t/import-tags-from-file-name/9319/1 "2009-11-12T13:09:48Z")

</div>

Hi, new to this forum, can't find where to post my question so I thought best to add to this one.

I am trying without success to get this:

"15 You're Not Gangsta Like Ross Whiteman D12 featuring King Gordy.mp3"

To be:

**Track** _15_  
**Title** _Your Not Gangsta Like Ross Whiteman_  
**Artist** _D12 featuring King Gordy_

or

**Artist** _D12_  
**Featuring** _King Gordy_

or  
  
**Group/Band** _D12_  
**Featuring** _King Gordy_

(Note - bold and italics used for illustration purposes only, "bold text" represents field names and "italic texts" represents field data.)

---

<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: [November 12, 2009, 4:01pm UTC](https://community.mp3tag.de/t/import-tags-from-file-name/9319/2 "2009-11-12T16:01:53Z")

</div>

> [@bashdabash](#):
>
> ...I am trying without success to get this:  
> "15 You're Not Gangsta Like Ross Whiteman D12 featuring King Gordy.mp3"  
> To be:  
> **Track** _15_  
> **Title** _Your Not Gangsta Like Ross Whiteman_  
> **Artist** _D12 featuring King Gordy_  
> or  
> **Artist** _D12_  
> **Featuring** _King Gordy_  
> or  
>   
> **Group/Band** _D12_  
> **Featuring** _King Gordy_....

The filename is not so well formed to allow Mp3tag to guess how to fill the fitting tag fields.  
As a first step you may reformat the filename by a regular expression like you find it in the following proposal and then let Mp3tag guess the values.

Action #1  
_Actiontype 7:_ **Import tag fields (guess values)**  
_Source format:_ **$regexp(%\_filename%,'^(\d+)÷(.+)÷(.+?)÷featuring÷(.+?)$','$1÷-÷$2÷-÷$3÷-÷$4')**  
_Guessing pattern:_ **%TRACK%÷-÷%TITLE%÷-÷%ARTIST%÷-÷%FEATURING%**  
_Note: Replace each special ÷ character with one space character._

This is rather tricky and does not work in all cases but with filenames havin the same word structure like the example filename.

DD.20091112.1800.CET

---

<div class="post-metadata">

### Author: ![bashdabash](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/91b2a8/32.png) [@bashdabash](https://community.mp3tag.de/u/bashdabash)
#### Post date: [November 12, 2009, 4:43pm UTC](https://community.mp3tag.de/t/import-tags-from-file-name/9319/3 "2009-11-12T16:43:20Z")

</div>

> [@DetlevD](#):
>
> The filename is not so well formed to allow Mp3tag to guess how to fill the fitting tag fields.  
> As a first step you may reformat the filename by a regular expression like you find it in the following proposal and then let Mp3tag guess the values.
> 
> Action #1  
> _Actiontype 7:_ **Import tag fields (guess values)**  
> _Source format:_ **$regexp(%\_filename%,'^(\d+)÷(.+)÷(.+?)÷featuring÷(.+?) ,'$1÷-÷$2÷-÷$3÷-÷$4')**  
> _Guessing pattern:_ **%TRACK%÷-÷%TITLE%÷-÷%ARTIST%÷-÷%FEATURING%**  
> _Note: Replace each special ÷ character with one space character._
> 
> This is rather tricky and does not work in all cases but with filenames havin the same word structure like the example filename.
> 
> DD.20091112.1800.CET

Thanks for that help, I guess it might be easier to just put some dashes in the title, I and looking through my 6000+ collection and only a couple hundred files are like this.

A quick question because I can't fine the post - How do I remove the "." from eg. "01." so it shows as "01" in the track field?

---

<div class="post-metadata">

### Author: ![Quaraxkad](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/q/7bcc69/32.png) [@Quaraxkad](https://community.mp3tag.de/u/Quaraxkad)
#### Post date: [November 12, 2009, 5:58pm UTC](https://community.mp3tag.de/t/import-tags-from-file-name/9319/4 "2009-11-12T17:58:39Z")

</div>

> [@bashdabash](#):
>
> A quick question because I can't fine the post - How do I remove the "." from eg. "01." so it shows as "01" in the track field?

Where did that dot come from? There isn't one in that example filename, if you're talking about something else give an example.

---

<div class="post-metadata">

### Author: ![bashdabash](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/91b2a8/32.png) [@bashdabash](https://community.mp3tag.de/u/bashdabash)
#### Post date: [November 15, 2009, 5:57pm UTC](https://community.mp3tag.de/t/import-tags-from-file-name/9319/5 "2009-11-15T17:57:42Z")

</div>

> [@Quaraxkad](#):
>
> Where did that dot come from? There isn't one in that example filename, if you're talking about something else give an example.

The dot is after the track number, in my case the track number is 01. 02. 03. etc. when the track field is populated I want it to be show as 01 02 03 without the dot.

---

<div class="post-metadata">

### Author: ![Quaraxkad](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/q/7bcc69/32.png) [@Quaraxkad](https://community.mp3tag.de/u/Quaraxkad)
#### Post date: [November 15, 2009, 11:33pm UTC](https://community.mp3tag.de/t/import-tags-from-file-name/9319/6 "2009-11-15T23:33:48Z")

</div>

> [@bashdabash](#):
>
> The dot is after the track number, in my case the track number is 01. 02. 03. etc. when the track field is populated I want it to be show as 01 02 03 without the dot.

Where does the track number come from though? Are you doing Filename to tag, and there's a dot in the filename? If that's the case then you just need to add a . to the formatting string after the track number. Need more more information to give a more specific answer.

If you just want to remove the . from existing TRACK fields, make a Replace action that searches the TRACK field and replace . with nothing.

---

<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:21pm UTC](https://community.mp3tag.de/t/import-tags-from-file-name/9319/7 "2026-02-09T12:21:56Z")

</div>


