# RegExp wont extract parts from filename

**URL:** https://community.mp3tag.de/t/regexp-wont-extract-parts-from-filename/11637
**Category:** Support
**Created:** [February 26, 2011, 8:14am UTC](https://community.mp3tag.de/t/regexp-wont-extract-parts-from-filename/11637 "2011-02-26T08:14:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![max\_124\_cOre](https://community.mp3tag.de/user_avatar/community.mp3tag.de/max_124_core/32/346_2.png) [@max\_124\_cOre](https://community.mp3tag.de/u/max_124_cOre)
#### Post date: [February 26, 2011, 8:14am UTC](https://community.mp3tag.de/t/regexp-wont-extract-parts-from-filename/11637/1 "2011-02-26T08:14:43Z")

</div>

Hi there,

i have a small problem to extract parts from my filenames via RegExp.  
May anyone has a suitable solution?

I have 2 types of filenames looks like this  
a1\_artist\_-_title.mp3  
and  
a1\_artist_-_title_(remixer).mp3

when I use $regexp(%_filename%,(..)_(.+)_-_(.\*),$1 $2 - $3) it works fine if the filename exactly matches the regex pattern. Is it possible that mp3tag switches automatically to the correct regex pattern when the filename is changing to the other syntax?

Thanx in advance..

---

<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:22pm UTC](https://community.mp3tag.de/t/regexp-wont-extract-parts-from-filename/11637/2 "2026-02-09T12:22:56Z")

</div>


