# Regular Expressions

**URL:** https://community.mp3tag.de/t/regular-expressions/521
**Category:** Howto
**Created:** [October 16, 2003, 4:47pm UTC](https://community.mp3tag.de/t/regular-expressions/521 "2003-10-16T16:47:29Z")
**Posts on this page:** 1
**Showing post:** 18

<div class="post-metadata">

### Author: ![nmiller\_co](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/6a8cbe/32.png) [@nmiller\_co](https://community.mp3tag.de/u/nmiller_co)
#### Post date: [January 21, 2008, 11:13pm UTC](https://community.mp3tag.de/t/regular-expressions/521/18 "2008-01-21T23:13:25Z")

</div>

I recently converted all my wma files to mp3 only to realize that all the tags were lost. My music is in the form:

**...\artist\album\track title.mp3**

MP3TAG came to my rescue! Not sure whether there was an easier way to do this, but I got started by reading [this](https://community.mp3tag.de/t/6100/1). Sorry if these are lame ways of doing it, but it's my 1st experience with _regexp_.

format artist:  
**$regexp(%\_folderpath%,.+\\(.+)\\(.+)\\,$1)**

format album:  
**$regexp(%\_folderpath%,.+\\(.+)\\(.+)\\,$2)**

Next 2 I got from ThurstonX in this post.

format track:  
**$regexp(%\_filename%,(\d\*)\s?(.+),$1)**

format title:  
**$regexp(%\_filename%,(\d\*)\s?(.+),$2)**

This program saved me TONS of time...

---

_[View the full topic](https://community.mp3tag.de/t/regular-expressions/521)._
