# \[Actions\] removing "www..." from filename

**URL:** https://community.mp3tag.de/t/actions-removing-www-from-filename/10759
**Category:** Support
**Created:** [September 3, 2010, 11:20am UTC](https://community.mp3tag.de/t/actions-removing-www-from-filename/10759 "2010-09-03T11:20:03Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![soulreaver1](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/3da27b/32.png) [@soulreaver1](https://community.mp3tag.de/u/soulreaver1)
#### Post date: [September 3, 2010, 11:20am UTC](https://community.mp3tag.de/t/actions-removing-www-from-filename/10759/1 "2010-09-03T11:20:03Z")

</div>

Hi All.

I Would like to remove "www." from mp3 filenames.

Exemple:

**Artist - Title [[www.somesite.com](http://www.somesite.com)].mp3**

I'd like to get:

**Artist - Title.mp3**

Is that possible to get this result using regular expressions, and how?

---

<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: [September 3, 2010, 12:05pm UTC](https://community.mp3tag.de/t/actions-removing-www-from-filename/10759/2 "2010-09-03T12:05:10Z")

</div>

> [@soulreaver1](#):
>
> ... I Would like to remove "www." from mp3 filenames. Exemple:  
> **Artist - Title [[www.somesite.com](http://www.somesite.com)].mp3**  
> I'd like to get:  
> **Artist - Title.mp3**  
> Is that possible to get this result using regular expressions, and how?

You do not need the obvious power of Regular Expression, simply use the dialog "Mp3tag/Convert/Filename - Filename" to solve your problem (hmm ... there might be working a Regular Expression behind the scene).

 

**Convert** | **Filename - Filename** | **ALT+3**

 

_Select format string_

 

Old filename pattern:  
**%1 - %2 [%3]**

 

New filename pattern:  
**%1 - %2**

 

Preview  
**Artist - Title.mp3**

 

DD.20100903.1604.CEST

---

<div class="post-metadata">

### Author: ![soulreaver1](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/3da27b/32.png) [@soulreaver1](https://community.mp3tag.de/u/soulreaver1)
#### Post date: [September 3, 2010, 3:32pm UTC](https://community.mp3tag.de/t/actions-removing-www-from-filename/10759/3 "2010-09-03T15:32:06Z")

</div>

> [@DetlevD](#):
>
> You do not need the obvious power of Regular Expression, simply use the dialog "Mp3tag/Convert/Filename - Filename" to solve your problem (hmm ... there might be working a Regular Expression behind the scene).
> 
>  
> 
> **Convert** | **Filename - Filename** | **ALT+3**
> 
>  
> 
> _Select format string_
> 
>  
> 
> Old filename pattern:  
> **%1 - %2 [%3]**
> 
>  
> 
> New filename pattern:  
> **%1 - %2**
> 
>  
> 
> Preview  
> **Artist - Title.mp3**
> 
>  
> 
> DD.20100903.1604.CEST

Ok. that could be solution, but i have already configured few expressions in Convert --\> Actions. I'd like to have a "one click" tool to tidy up my mp3's. That's why i suggested expressions (as a wish).

---

<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: [September 3, 2010, 5:32pm UTC](https://community.mp3tag.de/t/actions-removing-www-from-filename/10759/4 "2010-09-03T17:32:17Z")

</div>

> [@soulreaver1](#):
>
> ... i have already configured few expressions in Convert --\> Actions. I'd like to have a "one click" tool to tidy up my mp3's. ...

You may set up the tags properly (what is recommended), ...

Action: Guess values  
Source format: **%\_FILENAME%**  
Guessing pattern: **%ARTIST% - %TITLE% [www.%DUMMY%]**

... then you can use ...  
Action: **Format value**  
Field: **\_FILENAME**  
Formatstring: **%ARTIST% - %TITLE%**

If you like it complicated in one step ...  
Action: **Format value**  
Field: **\_FILENAME**  
Formatstring: **$regexp(%\_FILENAME%,'^(.+?\s-\s.+?)\s(?i)[www..+?]$','$1')**

DD.20100903.2141.CEST, DD.20150721.1518.CEST

---

<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/actions-removing-www-from-filename/10759/5 "2026-02-09T12:22:31Z")

</div>


