# Remove string from filename if specific field present

**URL:** https://community.mp3tag.de/t/remove-string-from-filename-if-specific-field-present/47582
**Category:** General Discussion
**Created:** [January 21, 2020, 6:53pm UTC](https://community.mp3tag.de/t/remove-string-from-filename-if-specific-field-present/47582 "2020-01-21T18:53:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![TheOutersideDJ](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/b5a626/32.png) [@TheOutersideDJ](https://community.mp3tag.de/u/TheOutersideDJ)
#### Post date: [January 21, 2020, 6:53pm UTC](https://community.mp3tag.de/t/remove-string-from-filename-if-specific-field-present/47582/1 "2020-01-21T18:53:03Z")

</div>

So I was wondering if there is a way to do this without so many steps.

I'm able to do actions to accomplish this but way to many steps for 54,000+ songs.

Filename = Wisconsin - Wausau (Joe) (Remix)

Virtual DJ takes (Remix) and places it in a ID3 Tag field "Remixer" taking ( ) off. I made mistake and batch processes a lot of songs to rename filename in VDJ.

So now Filename = Wisconsin - Wausau (Joe) (Remix) (Remix)

I corrected a lot of them but ... here is what I want ....

If ID3 **"Remixer"** (known as _Version_ tag in MP3Tag) = **Remix** Then

remove (Remix) from filename else leave file name alone.

So eg. outcome....

Filename "Contains (Remix)"  
and  
ID3 Tag Version = (Remix)  
then  
Remove (Remix) from filename

Filename "Contains (Remix)"  
and  
ID3 Tag Version = "" or Version = something else  
then  
Do Nothing

The reason It has to be this way is because "Version" will not always be "Remix". It could be remixers name. So just focusing on the word REMIX.

Thank you in advance. I hope I explained what I'm trying to achieve.

---

<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: [January 21, 2020, 7:10pm UTC](https://community.mp3tag.de/t/remove-string-from-filename-if-specific-field-present/47582/2 "2020-01-21T19:10:21Z")

</div>

You can filter for the presence and/or the contents of a tag field

> [@TheOutersideDJ](#):
>
> known as _Version_ tag in MP3Tag

This looks like a user-defined field as I cannot find it in the list of standard fields:  
file:///C:/Users/Thilo/Documents/Tools/Mp3tag/help/main\_tags.html

Anyway, provided there is a field called VERSION filter with this expression:  
version IS Remix  
then treat all the shown filenames and remove the "remix" as you want it.

---

<div class="post-metadata">

### Author: ![TheOutersideDJ](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/b5a626/32.png) [@TheOutersideDJ](https://community.mp3tag.de/u/TheOutersideDJ)
#### Post date: [January 21, 2020, 9:13pm UTC](https://community.mp3tag.de/t/remove-string-from-filename-if-specific-field-present/47582/3 "2020-01-21T21:13:22Z")

</div>

LMAO don't know why I didn't think of it in first place.

Filter = %Version% IS Remix  
select all  
then Action Remove (Remix) in filename.

Simple, Thanks Ohrenkino
