# convert filename to artist

**URL:** <https://community.mp3tag.de/t/convert-filename-to-artist/18101>\
**Category:** Support\
**Created:** [July 10, 2016, 2:14pm UTC](https://community.mp3tag.de/t/convert-filename-to-artist/18101 "2016-07-10T14:14:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![huangchenmin](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/c67d28/32.png) [@huangchenmin](https://community.mp3tag.de/u/huangchenmin)\
**Post date:** [July 10, 2016, 2:14pm UTC](https://community.mp3tag.de/t/convert-filename-to-artist/18101/1 "2016-07-10T14:14:46Z")

</div>

Hello,I need your help.  
here is the filename  
086 Human League - Don't You Want Me.mp3

here is the function i use to convert filename to artist  
$mid(%\_filename\_ext%,5,$strchr(%\_filename\_ext%,-))

here is the outcome i got  
Human League - Don

How could I get "Human League" instead of "Human League - Don".

Sincerely yours  
Chenmin

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [July 10, 2016, 2:48pm UTC](https://community.mp3tag.de/t/convert-filename-to-artist/18101/2 "2016-07-10T14:48:34Z")

</div>

Use the converter menue Filename -\> Tag or define an action of the type "Guess Values".

Convert String:  
Format string: %dummy% %artist% - %dummy%

Action-Type: Guess values  
Source format: %\_filename%  
Guessing pattern: %dummy% %artist% - %dummy%

---

<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:26pm UTC](https://community.mp3tag.de/t/convert-filename-to-artist/18101/3 "2026-02-09T12:26:20Z")

</div>

Closed on February 9, 2026, 12:26pm UTC


