# Trying to combine file name parts to a tag in different order

**URL:** https://community.mp3tag.de/t/trying-to-combine-file-name-parts-to-a-tag-in-different-order/68843
**Category:** Support
**Created:** [June 12, 2025, 9:16pm UTC](https://community.mp3tag.de/t/trying-to-combine-file-name-parts-to-a-tag-in-different-order/68843 "2025-06-12T21:16:12Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ChipR](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/958977/32.png) [@ChipR](https://community.mp3tag.de/u/ChipR)
#### Post date: [June 12, 2025, 9:16pm UTC](https://community.mp3tag.de/t/trying-to-combine-file-name-parts-to-a-tag-in-different-order/68843/1 "2025-06-12T21:16:12Z")

</div>

I receive many mp3 audio files for dance comps. The format is always fixed. If is a duet so two names the format is catagory\_level\_1st person last name\_1st person first name\_2nd person first name\_2nd person lastname.

id like title to be names as 1st person first 1st person last & 2nd person first 2nd person last  
then catagory to Artist and level to Album

I'm doing it with several passes now  
convert filename\>tag with `%artist%_%album%_%composer%_%title%_%genre%_%comment%`  
so now name parts are in several "temp" locations

second pass puts name parts all together in right order  
convert tag\>tag with `%title% %composer% & %genre% %comment%`

then clear all temp stuff from composer, genre and comments

I gotta think there is a better way of doing this all directly but can' figure one out!!

\*\*\* ok when I posted this the convert filename to tag separators \_ got dropped between most of the six tag types no idea why

thanks for any ideas  
chip

---

<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: [June 12, 2025, 9:28pm UTC](https://community.mp3tag.de/t/trying-to-combine-file-name-parts-to-a-tag-in-different-order/68843/2 "2025-06-12T21:28:26Z")

</div>

> [@ChipR](#):
>
> \*\*\* ok when I posted this the convert filename to tag separators \_ got dropped between most of the six tag types no idea why

See here for formatting hints:

> [@Hints for asking Support Requests](https://community.mp3tag.de/t/hints-for-asking-support-requests/56190#use-formatting-when-necessary-4):
>
> If you need support using Mp3tag, you can help the community members that are about to support you in finding a solution or workaround to your problem, by following these simple guidelines. Be descriptive, also in what you’ve already tried Please give a short explanation what’s not working as expected or what you’re trying to achieve. It’s best to know any details about the problem at hand and especially, what steps you’ve already tried to solve it by yourself. Helpful information also includ…

I am not sure that I understand what happens as you use regular field names and call them

> [@ChipR](#):
>
> temp stuff

In which field do you want the data to appear? TITLE or are we talking about the filename (which is not really a tag field)

Could you show us a real filename, the function with which you retrieve the data and the desired result?

---

<div class="post-metadata">

### Author: ![ChipR](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/958977/32.png) [@ChipR](https://community.mp3tag.de/u/ChipR)
#### Post date: [June 12, 2025, 9:34pm UTC](https://community.mp3tag.de/t/trying-to-combine-file-name-parts-to-a-tag-in-different-order/68843/3 "2025-06-12T21:34:59Z")

</div>

real filename as emailed to me:  
Jazz group\_level3\_Jones\_Suzie\_Annie\_Brown.mp3

want TITLE to be Suzie Jones & Annie Brown  
ARTIST to be Jazz group  
ALBUM to be level 3

---

<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: [June 12, 2025, 9:44pm UTC](https://community.mp3tag.de/t/trying-to-combine-file-name-parts-to-a-tag-in-different-order/68843/4 "2025-06-12T21:44:22Z")

</div>

> [@ChipR](#):
>
> Jazz group\_level3\_Jones\_Suzie\_Annie\_Brown

Try an action group of the type "Guess value"  
Source string: `$replace($regexp(%_filename%,(.*?)_(.*?)_(.*),$1==$2==$3),_, )`  
Guessing pattern: %artist%==%album%==%title%

The `&` will have to be entered manually as it is hard to guess where to split the 4 words

---

<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: [July 12, 2025, 9:44pm UTC](https://community.mp3tag.de/t/trying-to-combine-file-name-parts-to-a-tag-in-different-order/68843/5 "2025-07-12T21:44:32Z")

</div>

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