# Need to know the reg exp for following

**URL:** https://community.mp3tag.de/t/need-to-know-the-reg-exp-for-following/11604
**Category:** Support
**Created:** [February 17, 2011, 6:46pm UTC](https://community.mp3tag.de/t/need-to-know-the-reg-exp-for-following/11604 "2011-02-17T18:46:04Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![cdtinguria](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/e9c0ed/32.png) [@cdtinguria](https://community.mp3tag.de/u/cdtinguria)
#### Post date: [February 17, 2011, 6:46pm UTC](https://community.mp3tag.de/t/need-to-know-the-reg-exp-for-following/11604/1 "2011-02-17T18:46:04Z")

</div>

I want to convert my filename from 'Nothing Else Matters' to 'NothingElseMatters'.  
What regular exp should i use to achive this?

thanks

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [February 17, 2011, 7:22pm UTC](https://community.mp3tag.de/t/need-to-know-the-reg-exp-for-following/11604/2 "2011-02-17T19:22:24Z")

</div>

> [@cheetos](#):
>
> ... convert my filename from 'Nothing Else Matters' to 'NothingElseMatters'.

For just one filename i would use the explorer.  
if there are more files to be renamed, I am not quite sure whether a search/replace on the pseudo variable filename works.  
If it does not:  
format a custom tag with the name e.g. "newfilename" with %\_filename%.  
replace all blanks in "newfilenmae" with nothing with a simple replace action.  
copy the value of newfilename into the pseudo tag %\_filename%.  
the FAQ  
[/t/967/1](https://community.mp3tag.de/t/967/1)  
shows you how to copy values from one tag to another.

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [February 17, 2011, 7:53pm UTC](https://community.mp3tag.de/t/need-to-know-the-reg-exp-for-following/11604/3 "2011-02-17T19:53:25Z")

</div>

Action: Replace  
Field: \_FILENAME  
Original: " " _(without quotationmarks, just a single space)_  
Replace with: "" _(without quotationmarks, just nothing)_

you need no custom help fields and you can perform this action with as many files as you want.

---

<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: [February 17, 2011, 8:10pm UTC](https://community.mp3tag.de/t/need-to-know-the-reg-exp-for-following/11604/4 "2011-02-17T20:10:42Z")

</div>

> [@cheetos](#):
>
> I want to convert my filename from 'Nothing Else Matters' to 'NothingElseMatters'.  
> What **regular exp** should i use to achive this? thanks

The following calls of the $regexp() function give all the same result.  
From:  
Nothing Else Matters.mp3  
To:  
NothingElseMatters.mp3

**$regexp(%\_filename%, ,) $regexp(%\_filename%,\s,) $regexp(%\_filename%,' ',) $regexp(%\_filename%,'\s',)**

... or use a standard replace function ...

**$replace(%\_filename%, ,) $replace(%\_filename%,' ',)**

DD.20110217.2213.CET

---

<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/need-to-know-the-reg-exp-for-following/11604/5 "2026-02-09T12:22:55Z")

</div>


