# Rearranging parts of a filename in title field

**URL:** https://community.mp3tag.de/t/rearranging-parts-of-a-filename-in-title-field/65564
**Category:** Support
**Created:** [August 11, 2024, 11:33pm UTC](https://community.mp3tag.de/t/rearranging-parts-of-a-filename-in-title-field/65564 "2024-08-11T23:33:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![cmach1](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/46a35a/32.png) [@cmach1](https://community.mp3tag.de/u/cmach1)
#### Post date: [August 11, 2024, 11:33pm UTC](https://community.mp3tag.de/t/rearranging-parts-of-a-filename-in-title-field/65564/1 "2024-08-11T23:33:19Z")

</div>

I have 76 files I need a batch solution for. The filenames are formatted like this:

**A01a Artistry In Trumpets**  
**A01b Artistry In Trumpets**  
**A01c Artistry In Trumpets**

**A02a Juanita**  
**A02b Jaunita**

ect.

What I'd like to do is copy those names to the title field, with the first 5 characters cut, but I want to put the 4th character (the lowercase letter) at the end of the title in parentheses. So they look like this:

**Artistry In Trumpets (a)**  
**Artistry In Trumpets (b)**  
**Artistry In Trumpets (c)**

**Juanita (a)**  
**Juanita (b)**

There has to be a way to do this.

---

<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: [August 12, 2024, 5:11am UTC](https://community.mp3tag.de/t/rearranging-parts-of-a-filename-in-title-field/65564/2 "2024-08-12T05:11:05Z")

</div>

> [@cmach1](#):
>
> **A01a Artistry In Trumpets**

Try an action of the type "Format value" for TITLE  
Format string: `$regexp(%_filename%,...(.) (.*),$2 \($1\))`

---

<div class="post-metadata">

### Author: ![cmach1](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/46a35a/32.png) [@cmach1](https://community.mp3tag.de/u/cmach1)
#### Post date: [August 12, 2024, 12:54pm UTC](https://community.mp3tag.de/t/rearranging-parts-of-a-filename-in-title-field/65564/3 "2024-08-12T12:54:27Z")

</div>

That worked perfectly! Thank you!

---

<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: [September 11, 2024, 12:54pm UTC](https://community.mp3tag.de/t/rearranging-parts-of-a-filename-in-title-field/65564/4 "2024-09-11T12:54:42Z")

</div>

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