# Title renamed to portion of filename

**URL:** https://community.mp3tag.de/t/title-renamed-to-portion-of-filename/5087
**Category:** Support
**Created:** [June 29, 2007, 8:16pm UTC](https://community.mp3tag.de/t/title-renamed-to-portion-of-filename/5087 "2007-06-29T20:16:54Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ken](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@ken](https://community.mp3tag.de/u/ken)
#### Post date: [June 29, 2007, 8:16pm UTC](https://community.mp3tag.de/t/title-renamed-to-portion-of-filename/5087/1 "2007-06-29T20:16:54Z")

</div>

My mp3 file names follow the convention: yymmdd Author {Series} Description

For example: 070603 John Doe {Sunday Morning Series} This is small description.mp3

I have 3000 files. Is there a way where I can use regular expressions to have the Title be the Description of every file. In the example above, the title would be: _This is small description_

Thanks,

Ken

---

<div class="post-metadata">

### Author: ![ken](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@ken](https://community.mp3tag.de/u/ken)
#### Post date: [July 2, 2007, 12:33am UTC](https://community.mp3tag.de/t/title-renamed-to-portion-of-filename/5087/2 "2007-07-02T00:33:10Z")

</div>

Anyone have answers?

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [July 2, 2007, 1:19pm UTC](https://community.mp3tag.de/t/title-renamed-to-portion-of-filename/5087/3 "2007-07-02T13:19:15Z")

</div>

I don't understand exactly, what you want to do. 😲

Which ID3tag should contain which part of the filename?

If you write "...Title be the Description of every file" - what kind of description? Do you mean the COMMENT-Tag of every file?

Please make an example with the desired tags and content from your filename.

---

<div class="post-metadata">

### Author: ![ken](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@ken](https://community.mp3tag.de/u/ken)
#### Post date: [July 10, 2007, 9:10am UTC](https://community.mp3tag.de/t/title-renamed-to-portion-of-filename/5087/4 "2007-07-10T09:10:25Z")

</div>

Hi,

The 'Title' tag should contain a portion of the filename.  
Another Example: 070203wABC {Name of Series}XYZ.mp3  
XYZ is the 'Title'  
The 'Title' should be that which is after the curly brackets.

Thanks,

Ken

---

<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: [July 10, 2007, 9:48am UTC](https://community.mp3tag.de/t/title-renamed-to-portion-of-filename/5087/5 "2007-07-10T09:48:33Z")

</div>

1. This should work:  
Convert/Filename-Tag  
Formatstring: **%DUMMY%} %TITLE%**

2. This should work:  
Action #1:  
_Action type:_ **Format value**  
_Field:_ **TITLE**  
_Formatstring:_ **$regexp(%\_filename%,^(._} )(._)$,$2)**

3. This should work:  
Action #1:  
_Action type:_ **Format value**  
_Field:_ **TITLE**  
_Formatstring:_ **$regexp($regexp(%\_FILENAME%,.\*} ,),.mp3$,)**

4. This should work:  
Action #1:  
_Action type:_ **Format value**  
_Field:_ **TITLE**  
_Formatstring:_ **%\_FILENAME%**  
Action #2:  
_Action type:_ **Replace with regular expression**  
_Field:_ **TITLE**  
_Regular expression:_ **^(._} )(._)(.mp3)$**  
_Replace matches with:_ **$2**

[] case-sensitive comparison

The contents of %\_FILENAME% seems to be ambigious.  
In cases 1, 2 there is no file extension '.mp3' included but in cases 3, 4 there is a file extension.

DD.20070711.2025.MEST

---

<div class="post-metadata">

### Author: ![ken](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@ken](https://community.mp3tag.de/u/ken)
#### Post date: [July 31, 2007, 11:30am UTC](https://community.mp3tag.de/t/title-renamed-to-portion-of-filename/5087/6 "2007-07-31T11:30:31Z")

</div>

> [@DetlevD](#):
>
> 1. This should work:  
> Convert/Filename-Tag  
> Formatstring: **%DUMMY%} %TITLE%**
> 
> 2. This should work:  
> Action #1:  
> _Action type:_ **Format value**  
> _Field:_ **TITLE**  
> _Formatstring:_ **$regexp(%\_filename%,^(._} )(._)$,$2)**
> 
> 3. This should work:  
> Action #1:  
> _Action type:_ **Format value**  
> _Field:_ **TITLE**  
> _Formatstring:_ **$regexp($regexp(%\_FILENAME%,.\*} ,),.mp3$,)**
> 
> 4. This should work:  
> Action #1:  
> _Action type:_ **Format value**  
> _Field:_ **TITLE**  
> _Formatstring:_ **%\_FILENAME%**  
> Action #2:  
> _Action type:_ **Replace with regular expression**  
> _Field:_ **TITLE**  
> _Regular expression:_ **^(._} )(._)(.mp3)$**  
> _Replace matches with:_ **$2**
> 
> [] case-sensitive comparison
> 
> The contents of %\_FILENAME% seems to be ambigious.  
> In cases 1, 2 there is no file extension '.mp3' included but in cases 3, 4 there is a file extension.
> 
> DD.20070711.2025.MEST

Thank you for your support. I have studied the regular expressions using the examples shown and have come up with the following that did what I needed:

$regexp(%_filename%,^(.{(.)})(.\*)$,$3_$2)

---

<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:20pm UTC](https://community.mp3tag.de/t/title-renamed-to-portion-of-filename/5087/7 "2026-02-09T12:20:23Z")

</div>


