# Filenames

**URL:** <https://community.mp3tag.de/t/filenames/17819>\
**Category:** Support\
**Created:** [April 4, 2016, 4:56pm UTC](https://community.mp3tag.de/t/filenames/17819 "2016-04-04T16:56:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![faisdlair](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/c4cdca/32.png) [@faisdlair](https://community.mp3tag.de/u/faisdlair)\
**Post date:** [April 4, 2016, 4:56pm UTC](https://community.mp3tag.de/t/filenames/17819/1 "2016-04-04T16:56:08Z")

</div>

Hi!!

Is there a way to Remove everything Before the Filename

1. Don't Blame Me → Don't Blame Me  
01.Don't Blame Me → Don't Blame Me  
01Don't Blame Me → Don't Blame Me  
01-Don't Blame Me → Don't Blame Me  
01 - Don't Blame Me → Don't Blame Me  
A1.Don't Blame Me → Don't Blame Me  
D4.Don't Blame Me → Don't Blame Me  
A1-Don't Blame Me → Don't Blame Me

When i have Vinyl Rips Filenames appears like

A1 to F6 Most of the times

I only want to keep "Don't Blame Me"

Thank you

---

<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:** [April 4, 2016, 6:06pm UTC](https://community.mp3tag.de/t/filenames/17819/2 "2016-04-04T18:06:33Z")

</div>

> [@faisdlair](#):
>
> ... Is there a way to Remove everything Before the Filename ...

Before we get to create an universal $regexp() you can try the function $trimLeft() or the function $cutLeft().  
Examples to be adapted ...

**$regexp(%\_filename%,'(?#remove leading zeroes)^0+',) $trimLeft(%\_filename%,'0')**

DD.20160404.2206.CEST

---

<div class="post-metadata">

**Author:** ![faisdlair](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/c4cdca/32.png) [@faisdlair](https://community.mp3tag.de/u/faisdlair)\
**Post date:** [April 4, 2016, 6:22pm UTC](https://community.mp3tag.de/t/filenames/17819/3 "2016-04-04T18:22:42Z")

</div>

> [@DetlevD](#):
>
> Before we get to create an universal $regexp() you can try the function $trimLeft() or the function $cutLeft().
> 
> **$regexp(%\_filename%,'(?#remove leading zeroes)^0+',) $trimLeft(%\_filename%,'0')**
> 
> DD.20160404.2206.CEST

Do i have to create an action

Format Value or Guess value

---

<div class="post-metadata">

**Author:** ![faisdlair](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/c4cdca/32.png) [@faisdlair](https://community.mp3tag.de/u/faisdlair)\
**Post date:** [April 4, 2016, 7:58pm UTC](https://community.mp3tag.de/t/filenames/17819/4 "2016-04-04T19:58:19Z")

</div>

look what i have

It removes all numbers and A to D and First letter of the filename beginning with A to D

Format Value  
\_FILENAME  
Deviner les modeles  
$trimLeft(%filename%,'0123456789ABCD. -')%filename%

I tried yours on an action but no results  
$regexp(%\_filename%,'(?#remove leading zeroes)^0+',)  
$trimLeft(%\_filename%,'0')

Martin

---

<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:** [April 4, 2016, 8:36pm UTC](https://community.mp3tag.de/t/filenames/17819/5 "2016-04-04T20:36:49Z")

</div>

**$trimLeft($ifgreater($strstr('~'%\_filename%,'~A1'),0,$cutLeft(%\_filename%,2),%\_filename%),'0123456789 -.') $trimLeft($ifgreater($strstr('~'%\_filename%,'~B2'),0,$cutLeft(%\_filename%,2),%\_filename%),'0123456789 -.') $trimLeft($ifgreater($strstr('~'%\_filename%,'~C3'),0,$cutLeft(%\_filename%,2),%\_filename%),'0123456789 -.') $trimLeft($ifgreater($strstr('~'%\_filename%,'~D4'),0,$cutLeft(%\_filename%,2),%\_filename%),'0123456789 -.') $trimLeft($ifgreater($strstr('~'%\_filename%,'~E5'),0,$cutLeft(%\_filename%,2),%\_filename%),'0123456789 -.') $trimLeft($ifgreater($strstr('~'%\_filename%,'~F6'),0,$cutLeft(%\_filename%,2),%\_filename%),'0123456789 -.')**

... or ...

**$regexp($regexp(%\_filename%,'^(A1|B2|C3|D4|E5|F6)',),'^[0123456789 -.]',)**

DD.20160405.0047.CEST

---

<div class="post-metadata">

**Author:** ![faisdlair](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/c4cdca/32.png) [@faisdlair](https://community.mp3tag.de/u/faisdlair)\
**Post date:** [April 4, 2016, 8:52pm UTC](https://community.mp3tag.de/t/filenames/17819/6 "2016-04-04T20:52:48Z")

</div>

Everything Working now

Thank you for your Support

Long Life to MP3TAG

Martin

---

<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/filenames/17819/7 "2026-02-09T12:26:11Z")

</div>

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


