# Filename - Filename question

**URL:** https://community.mp3tag.de/t/filename-filename-question/855
**Category:** General Discussion
**Created:** [February 25, 2004, 11:32pm UTC](https://community.mp3tag.de/t/filename-filename-question/855 "2004-02-25T23:32:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Logan](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/278dde/32.png) [@Logan](https://community.mp3tag.de/u/Logan)
#### Post date: [February 25, 2004, 11:32pm UTC](https://community.mp3tag.de/t/filename-filename-question/855/1 "2004-02-25T23:32:35Z")

</div>

I am in the process of standardizing my MP3 library and have run into the following situation :

I have several files that I am converting to %track% - %artist% - %title% from %track% - %title% - %artist%. What I am running into is that a large number of tracks are remixes and have a section at the end like (BT's Remix).

I have two different conversion set up :

1. %1 - %2 - %3 to %1 - %3 - %2
2. %1 - %2 (%4) - %3 to %1 - %3 - %2 (%4)

If I use conversion 1 on a track without the mix at the end, I get () at then end of the filename.

Is that any way to do this in one pass rather than two ?

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [February 26, 2004, 4:56am UTC](https://community.mp3tag.de/t/filename-filename-question/855/2 "2004-02-26T04:56:57Z")

</div>

> [@](#):
>
> Is that any way to do this in one pass rather than two ?

No, this is not possible since Mp3tag has to know the correct filename pattern for the conversion.

Best regards,  
~ Florian

---

<div class="post-metadata">

### Author: ![Logan](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/278dde/32.png) [@Logan](https://community.mp3tag.de/u/Logan)
#### Post date: [February 26, 2004, 11:51am UTC](https://community.mp3tag.de/t/filename-filename-question/855/3 "2004-02-26T11:51:40Z")

</div>

thanks - incredible application by the way.

I show it to anyone who will listen....

---

<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: [February 26, 2004, 12:50pm UTC](https://community.mp3tag.de/t/filename-filename-question/855/4 "2004-02-26T12:50:20Z")

</div>

Logan i think u can do it using a regular expression action on the filename  
ive come up with this

Field:  
\_FILENAME  
Regulare Expression:  
^(\d{1,2})\s{1}-\s{1}(._(?._)?)\s{1}-\s{1}(._)(.._)  
Replace with:  
$1 - $3 - $2$4

maybe u want to try it on some of ur files 🙂

edit:  
^(\d{1,2})\s{1}-\s{1}(._)\s{1}-\s{1}(._)(..\*) should work too, no need to catch the ('s

---

<div class="post-metadata">

### Author: ![Logan](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/278dde/32.png) [@Logan](https://community.mp3tag.de/u/Logan)
#### Post date: [March 5, 2004, 2:00am UTC](https://community.mp3tag.de/t/filename-filename-question/855/5 "2004-03-05T02:00:52Z")

</div>

d4n0 - you sir, are a rock start !
