# Remove urls from tags

**URL:** https://community.mp3tag.de/t/remove-urls-from-tags/10886
**Category:** Support
**Created:** [September 30, 2010, 12:34pm UTC](https://community.mp3tag.de/t/remove-urls-from-tags/10886 "2010-09-30T12:34:23Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![FleXCube](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/57b2e6/32.png) [@FleXCube](https://community.mp3tag.de/u/FleXCube)
#### Post date: [September 30, 2010, 12:34pm UTC](https://community.mp3tag.de/t/remove-urls-from-tags/10886/1 "2010-09-30T12:34:23Z")

</div>

Hi guys 😆

Got some music with urls like these added to the titles/artist/comments etc...

Title: flux pavilion www.randomsite.pl  
Artist: chuckie [www.somesite.com](http://www.somesite.com)

**I want to remove all the urls from the tags.**  
   
Can't find/create a script that does it.

Help would be appreciated 😃

Thanks guys

---

<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: [October 1, 2010, 3:36am UTC](https://community.mp3tag.de/t/remove-urls-from-tags/10886/2 "2010-10-01T03:36:14Z")

</div>

> [@FleXCube](#):
>
> Hi guys 😆
> 
> Got some music with urls like these added to the titles/artist/comments etc...
> 
> Title: flux pavilion www.randomsite.pl  
> Artist: chuckie [www.somesite.com](http://www.somesite.com)

Create an action of the type "Format Tag field" e.g. for TITLE with a format string that looks like this:

$left(%title%,$strstr(%title%,' www'))  
(note the blank in front of www)  
Create a similar action for the field Artist

The idea is to let MP3tag search for " www" inside the string, determine the position of that string and trim the field up to that position.  
As this function return zero if the " www" is not found you will end up with an empty string if there is no " www" in it, so filter your list first before you start the action.

---

<div class="post-metadata">

### Author: ![FleXCube](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/57b2e6/32.png) [@FleXCube](https://community.mp3tag.de/u/FleXCube)
#### Post date: [October 1, 2010, 9:23am UTC](https://community.mp3tag.de/t/remove-urls-from-tags/10886/3 "2010-10-01T09:23:50Z")

</div>

Thanks 🙂

Is there a way to make an if else expression so that if it returns 0 it does nothing.  
And can you search all the fields at the same time ?

I hope that i'm not asking to much 😲

Thanks alot 😆

---

<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: [October 1, 2010, 9:54am UTC](https://community.mp3tag.de/t/remove-urls-from-tags/10886/4 "2010-10-01T09:54:47Z")

</div>

With a regex action you can replace in all fields:

_Action type:_ **Replace with regular expressions**  
_Field:_ **\_ALL**  
_Regular expression:_ **\s+www.[a-z0-9]+.[a-z]{2,3}\b**  
_Replace matches with:_

[] case-sensitive comparison

---

<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/remove-urls-from-tags/10886/5 "2026-02-09T12:22:35Z")

</div>


