# Erste 3 Stellen von \_FILENAME zerlegen und verteilen

**URL:** <https://community.mp3tag.de/t/erste-3-stellen-von-filename-zerlegen-und-verteilen/15034>\
**Category:** Allgemein\
**Created:** [September 14, 2013, 5:14am UTC](https://community.mp3tag.de/t/erste-3-stellen-von-filename-zerlegen-und-verteilen/15034 "2013-09-14T05:14:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![papi](https://community.mp3tag.de/user_avatar/community.mp3tag.de/papi/32/8625_2.png) [@papi](https://community.mp3tag.de/u/papi)\
**Post date:** [September 14, 2013, 5:14am UTC](https://community.mp3tag.de/t/erste-3-stellen-von-filename-zerlegen-und-verteilen/15034/1 "2013-09-14T05:14:10Z")

</div>

Kann mir bitte nochmal jemand einen Ausdruck liefern:

Für "Tagfeld formatieren" suche ich einen Ausdruck, der die 1. Stelle von \_FILENAME nach DISCNUMBER und die 2. und 3. Stelle von \_FILENAME nach Track kopiert, wenn \_FILENAME mit einer Zahl größer 99 beginnt.

Beispiel:

12 - Artist - Title.mp3 -\> keine Action  
101 - Artist - Title.mp3 -\> Discnumber=1, Track=01

Danke und Gruß  
Papi

---

<div class="post-metadata">

**Author:** ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)\
**Post date:** [September 14, 2013, 5:35am UTC](https://community.mp3tag.de/t/erste-3-stellen-von-filename-zerlegen-und-verteilen/15034/2 "2013-09-14T05:35:44Z")

</div>

_Aktionstyp:_ **Tag-Felder importieren**  
_Quellformat:_ **$regexp(%\_filename%,'^(\d)(\d\d) -.+',$1\*\*\*$2)**  
_Formatstring:_ **%discnumber%\*\*\*%track%**

---

<div class="post-metadata">

**Author:** ![papi](https://community.mp3tag.de/user_avatar/community.mp3tag.de/papi/32/8625_2.png) [@papi](https://community.mp3tag.de/u/papi)\
**Post date:** [September 14, 2013, 8:12am UTC](https://community.mp3tag.de/t/erste-3-stellen-von-filename-zerlegen-und-verteilen/15034/3 "2013-09-14T08:12:05Z")

</div>

Super, vielen Dank!
