# Modifying Tag from Tag (without using Filename)

**URL:** https://community.mp3tag.de/t/modifying-tag-from-tag-without-using-filename/8902
**Category:** Support
**Created:** [September 6, 2009, 4:38pm UTC](https://community.mp3tag.de/t/modifying-tag-from-tag-without-using-filename/8902 "2009-09-06T16:38:09Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![sonicblue](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@sonicblue](https://community.mp3tag.de/u/sonicblue)
#### Post date: [September 6, 2009, 4:38pm UTC](https://community.mp3tag.de/t/modifying-tag-from-tag-without-using-filename/8902/1 "2009-09-06T16:38:09Z")

</div>

Hello,

Love the program. It's incredibly powerful and there's so much I can do with it.

I have run into a problem though. I'm trying to modify the title of my MP3's utilizing the _%ORIGALBUM%_ tag. Let me explain.

The _%TITLE%_ of my MP3 looks like this.  
**Street Fighter 3: 3rd Strike Jungle Jazz OC ReMix**

And the _%ORIGALBUM%_ tag looks like this.  
**Street Fighter 3: 3rd Strike**

I want to remove _%ORIGALBUM%_ from _%TITLE%_ so that it looks like this.  
**Jungle Jazz OC ReMix**

Since there is no Tag - Tag conversion the only way I could figure out how to do this is to convert Tag - Filename, and then Filename - Tag. Unfortunately I'm afraid that many of my MP3's have invalid characters in their %TITLE% that I would like to preserve. Converting from tag to filename and then back to tag would lose those characters.

Is there anyway to do this without involving the FILENAME of the MP3? Please let me know if this isn't enough information to understand what it is I'm trying to do. Many thanks for your help in advance. 🙂

---

<div class="post-metadata">

### Author: ![newser](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/b9bd4f/32.png) [@newser](https://community.mp3tag.de/u/newser)
#### Post date: [September 6, 2009, 4:54pm UTC](https://community.mp3tag.de/t/modifying-tag-from-tag-without-using-filename/8902/2 "2009-09-06T16:54:56Z")

</div>

On your example this works:

_Name of action group:_ **remove origalbum from title**

_Action type:_ **Format value**  
_Field:_ **TITLE**  
_Formatstring:_ **$right(%title%,$sub($sub($len(%title%),$len(%origalbum%)),1))**

---

<div class="post-metadata">

### Author: ![sonicblue](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@sonicblue](https://community.mp3tag.de/u/sonicblue)
#### Post date: [September 6, 2009, 5:23pm UTC](https://community.mp3tag.de/t/modifying-tag-from-tag-without-using-filename/8902/3 "2009-09-06T17:23:59Z")

</div>

Wow! That worked like a charm! Thanks for your help. 🙂

I hadn't tried out the "Format value" action until now. Looks like it was the option I needed all along. Although I doubt I would have been able to concoct that elaborate expression.

One last thing maybe you can help with. This one should be much easier.

After doing the above action, if I wanted to remove the phrase " OC ReMix" from the title as well, how would I do that? I thought of maybe just remove the last 9 characters (including the spaces) from the end of each title. But I could also remove it by telling it to look for that exact phrase, right?

I tried using this.

_Action type:_ **Format value**  
_Field:_ **TITLE**  
_Formatstring:_ **$replace(%title%, OC ReMix,)**

And it worked for the one file I tried it on. However, I'm unsure if this will have unexpected results for other files? Each title ends with OC ReMix as far as I know. But what if the phrase "OC" or "remix" is elsehwere in the title? I don't want those removed if so.

Is it safe to use?

Oh! And thanks for your quick response! 😲

---

<div class="post-metadata">

### Author: ![newser](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/b9bd4f/32.png) [@newser](https://community.mp3tag.de/u/newser)
#### Post date: [September 6, 2009, 5:44pm UTC](https://community.mp3tag.de/t/modifying-tag-from-tag-without-using-filename/8902/4 "2009-09-06T17:44:41Z")

</div>

If the string doesn't found exactly " OC ReMix", he will do nothing.

---

<div class="post-metadata">

### Author: ![sonicblue](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@sonicblue](https://community.mp3tag.de/u/sonicblue)
#### Post date: [September 6, 2009, 6:11pm UTC](https://community.mp3tag.de/t/modifying-tag-from-tag-without-using-filename/8902/5 "2009-09-06T18:11:24Z")

</div>

Sa-weeeet!

Thank you for all your help! 🙂

---

<div class="post-metadata">

### Author: ![sonicblue](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@sonicblue](https://community.mp3tag.de/u/sonicblue)
#### Post date: [September 7, 2009, 8:32am UTC](https://community.mp3tag.de/t/modifying-tag-from-tag-without-using-filename/8902/6 "2009-09-07T08:32:01Z")

</div>

Hi again, I've got another question. 😲

In the event that my song has something filled into the %subtitle% field, I want to replace the %title% field with it. I made a very simple Format Value for this and it worked. Unfortunately, if the %subtitle% field was empty, then the %title% field became empty too.

I've hit a wall because I don't know how to do "if", "then" styled expressions. To sum it up, I **only** want the %title% field to be replaced by the %subtitle% field if the %subtitle% field has content in it. If it's empty, then I would like the expression to leave %title% alone.

Thank you.

---

<div class="post-metadata">

### Author: ![mjcm](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/9d8465/32.png) [@mjcm](https://community.mp3tag.de/u/mjcm)
#### Post date: [September 7, 2009, 9:24am UTC](https://community.mp3tag.de/t/modifying-tag-from-tag-without-using-filename/8902/7 "2009-09-07T09:24:32Z")

</div>

Sonic,

I think this could do the trick

Format Value: Title  
$iflonger(%SUBTITLE%,0,%SUBTITLE%,%TITLE%)

Explanation:  
If the String "Subtitle" is longer then 0 Characters  
then format %TITLE% with the Subtitle string. else leave it alone

Note:  
It doesn't take into consideration if %SUBTITLE% contains for example spaces

---

<div class="post-metadata">

### Author: ![newser](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/b9bd4f/32.png) [@newser](https://community.mp3tag.de/u/newser)
#### Post date: [September 7, 2009, 9:50am UTC](https://community.mp3tag.de/t/modifying-tag-from-tag-without-using-filename/8902/8 "2009-09-07T09:50:59Z")

</div>

Or you can try $if(%SUBTITLE%,%SUBTITLE%,%TITLE%)

---

<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 7, 2009, 12:15pm UTC](https://community.mp3tag.de/t/modifying-tag-from-tag-without-using-filename/8902/9 "2009-09-07T12:15:46Z")

</div>

... or this:  
$if2(%SUBTITLE%,%TITLE%)

DD.20090907.1615.CEST

---

<div class="post-metadata">

### Author: ![sonicblue](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@sonicblue](https://community.mp3tag.de/u/sonicblue)
#### Post date: [September 7, 2009, 2:14pm UTC](https://community.mp3tag.de/t/modifying-tag-from-tag-without-using-filename/8902/10 "2009-09-07T14:14:07Z")

</div>

You guys did it again. These have worked perfectly for me!

I appreciate all the help. 🙂

---

<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:21pm UTC](https://community.mp3tag.de/t/modifying-tag-from-tag-without-using-filename/8902/11 "2026-02-09T12:21:46Z")

</div>


