# Action- Filename - Lower case except very first letter

**URL:** https://community.mp3tag.de/t/action-filename-lower-case-except-very-first-letter/12236
**Category:** Support
**Created:** [July 6, 2011, 6:38am UTC](https://community.mp3tag.de/t/action-filename-lower-case-except-very-first-letter/12236 "2011-07-06T06:38:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![RussellRay](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/ed655f/32.png) [@RussellRay](https://community.mp3tag.de/u/RussellRay)
#### Post date: [July 6, 2011, 6:38am UTC](https://community.mp3tag.de/t/action-filename-lower-case-except-very-first-letter/12236/1 "2011-07-06T06:38:17Z")

</div>

Hello all

Can someone help me out please with an action to apply to the FILENAME only ?

My directory tree is  
E: \ Music \ Genre \ Artist \ Year Album \

and then comes the filename comprising :

Tracknumber (2 or 3 digits) SPACE Trackname.

Many tracknames are mixed case, i.e. each word starting in uppercase.  
Example  
01 Smoke On The Water

I want to change this to :  
01 Smoke on the water

If I create an action FILENAME Sentence case, all letters including the very first go lowercase.  
01 smoke on the water

I have entered 0123456789 and a space in the AFTER box  
but this makes no difference.

What am I doing wrong ?

Best regards and thanks in advance  
Ray

---

<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 6, 2011, 8:12am UTC](https://community.mp3tag.de/t/action-filename-lower-case-except-very-first-letter/12236/2 "2011-07-06T08:12:19Z")

</div>

> [@RussellRay](#):
>
> ... filename ... Tracknumber (2 or 3 digits) SPACE Trackname.  
> Many tracknames are mixed case, i.e. each word starting in uppercase.  
> Example  
> 01 Smoke On The Water  
> I want to change this to :  
> 01 Smoke on the water  
> If I create an action FILENAME Sentence case, all letters including the very first go lowercase.  
> 01 smoke on the water  
> I have entered 0123456789 and a space in the AFTER box  
> but this makes no difference. ...

The action module works correct.  
But it cannot help to solve the task, I think so.

There are other ways to go in Mp3tag, here is one proposal ...  
(... for two digit leading track number)  
Action: Format value  
Field: \_FILENAME  
Formatstring: **$left(%\_filename%,3)$caps3($cutLeft(%\_filename%,3))**

Here is another proposal, which handles a various number of leading digits ...  
Action: Format value  
Field: \_FILENAME  
Formatstring: **$regexp(%\_filename%,'^(\d+\s+)(.)(.+)$','$1\u$2\L$3')**

From:  
01 Smoke On The Water  
To:  
01 Smoke on the water

DD.20110706.1222.CEST

---

<div class="post-metadata">

### Author: ![RussellRay](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/ed655f/32.png) [@RussellRay](https://community.mp3tag.de/u/RussellRay)
#### Post date: [July 8, 2011, 6:59am UTC](https://community.mp3tag.de/t/action-filename-lower-case-except-very-first-letter/12236/3 "2011-07-08T06:59:11Z")

</div>

From:  
01 Smoke On The Water  
To:  
01 Smoke on the water

vielen Dank - ich habe die zweite Variante verwendet - funktioniert perfekt !

Ray

---

<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:23pm UTC](https://community.mp3tag.de/t/action-filename-lower-case-except-very-first-letter/12236/4 "2026-02-09T12:23:12Z")

</div>


