# Compare Tags and Remove Artist from Title Tag

**URL:** <https://community.mp3tag.de/t/compare-tags-and-remove-artist-from-title-tag/43107>\
**Category:** Support\
**Created:** [September 27, 2018, 4:09pm UTC](https://community.mp3tag.de/t/compare-tags-and-remove-artist-from-title-tag/43107 "2018-09-27T16:09:22Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![SpirosG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/spirosg/32/8589_2.png) [@SpirosG](https://community.mp3tag.de/u/SpirosG)\
**Post date:** [September 27, 2018, 4:09pm UTC](https://community.mp3tag.de/t/compare-tags-and-remove-artist-from-title-tag/43107/1 "2018-09-27T16:09:22Z")

</div>

What i would like to do is to compare Artist and Title tag and remove the Artist from the title tag.

Filename is:  
**Omega - Desafinao Live - Omega - DJ Santana - Merengue No Intro Steady - 133BPM**

Artsti Tag is:  
**Omega**

Title Tag is:  
**Desafinao Live - Omega - DJ Santana - Merengue No Intro Steady - 133BPM**

I know i could use the filename to tag with a string such as %artist% - %title% - %dummy% - %title%.  
The problem is that the filenames on this folder is a mess and not in the same form so it would be easier to work the tags first and the transfer everything to the filename later.

Also i would like to know if there is a way to transform the title to this form:  
**Desafinao Live [DJ Santana] [Merengue No Intro Steady]**

Thank you.

---

<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:** [September 27, 2018, 7:34pm UTC](https://community.mp3tag.de/t/compare-tags-and-remove-artist-from-title-tag/43107/2 "2018-09-27T19:34:46Z")

</div>

You could try an action of the type "Format value" for TITLE  
Format string: `$regexp(%title%,(.*?) - .*? - (.*) - (.*) - \d+BPM,$1 '['$2']' '['$3']')`

---

<div class="post-metadata">

**Author:** ![SpirosG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/spirosg/32/8589_2.png) [@SpirosG](https://community.mp3tag.de/u/SpirosG)\
**Post date:** [September 28, 2018, 10:27am UTC](https://community.mp3tag.de/t/compare-tags-and-remove-artist-from-title-tag/43107/3 "2018-09-28T10:27:00Z")

</div>

The action above helped me with some of the files but as i wrote before most of the filenames and the tags are a mess and not in the same form.  
What i would like to know is if there is a way to compare the Artist tag and the Title tag and remove the part of the Title tag that exist in the Artist tag.

---

<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:** [September 28, 2018, 11:04am UTC](https://community.mp3tag.de/t/compare-tags-and-remove-artist-from-title-tag/43107/4 "2018-09-28T11:04:27Z")

</div>

> [@SpirosG](#):
>
> most of the filenames and the tags are a mess and not in the same form

If you look closely you will discover that my suggestion did not use the filename.  
If the strings do not show the same pattern then it is fairly likely that each of these patterns has to be dealt with separately.  
E.g. even with a detection of the artist name (with perhaps the function strstr()) it would be different if there that name is found at the beginning or at the end.  
Also, replacing the parenthesis would probably not work.  
You might have noticed that my suggestion does it in one go.  
And if you found that

> [@SpirosG](#):
>
> the tags are a mess

it is fairly probable that the separation between the individual parts will differ.  
So show us the pattern of the next bunch of files with the same pattern and there will probably be a solution.

---

<div class="post-metadata">

**Author:** ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)\
**Post date:** [September 28, 2018, 11:36am UTC](https://community.mp3tag.de/t/compare-tags-and-remove-artist-from-title-tag/43107/5 "2018-09-28T11:36:15Z")

</div>

> [@SpirosG](#):
>
> What i would like to know is if there is a way to compare the Artist tag and the Title tag and remove the part of the Title tag that exist in the Artist tag.

You can try something like  
`$replace(%title%,%artist%,)` or `$replace(%title%,' - '%artist%,)`

---

<div class="post-metadata">

**Author:** ![SpirosG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/spirosg/32/8589_2.png) [@SpirosG](https://community.mp3tag.de/u/SpirosG)\
**Post date:** [September 28, 2018, 12:16pm UTC](https://community.mp3tag.de/t/compare-tags-and-remove-artist-from-title-tag/43107/6 "2018-09-28T12:16:24Z")

</div>

> [@Florian](#):
>
> `$replace(%title%,%artist%,)` or `$replace(%title%,' - '%artist%,)`

Second one worked perfectly, at least to the ones i checked because i have to check 800 files.  
It is really weird that the tags and the filenames are so messy because this folder is from a Dj Pool and it looks like they don't give a shit about their Tagging system.

> [@ohrenkino](#):
>
> If you look closely you will discover that my suggestion did not use the filename.  
> If the strings do not show the same pattern then it is fairly likely that each of these patterns has to be dealt with separately.  
> E.g. even with a detection of the artist name (with perhaps the function strstr()) it would be different if there that name is found at the beginning or at the end.  
> Also, replacing the parenthesis would probably not work.  
> You might have noticed that my suggestion does it in one go.  
> And if you found that.

I Observed that you weren't using the Filenames.  
Believe me i have spent so much time trying to correct these files and i don't want to waste your time also, i found at least 19 different naming patterns between these 800 files, i was thinking to give up but the solution above looks like it's working and now am trying to check if this removed the artist tag from the title tag.

> [@SpirosG](#):
>
> `$replace(%title%,' - '%artist%,)`

From what i can see this worked perfectly except the occasion of having the "artist tag" at the begging of the Title tag

---

<div class="post-metadata">

**Author:** ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)\
**Post date:** [September 28, 2018, 12:52pm UTC](https://community.mp3tag.de/t/compare-tags-and-remove-artist-from-title-tag/43107/7 "2018-09-28T12:52:44Z")

</div>

> [@SpirosG](#):
>
> From what i can see this worked perfectly except the occasion of having the "artist tag" at the begging of the Title tag

You can try `$replace(%title%,%artist%' - ',)` on those (note, that I've moved the part with the dash `' - '`_after_ the `%artist%`).

If you have other characters used as separators, e.g., an underscore `_` you can adapt the function to use that instead.

---

<div class="post-metadata">

**Author:** ![SpirosG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/spirosg/32/8589_2.png) [@SpirosG](https://community.mp3tag.de/u/SpirosG)\
**Post date:** [September 28, 2018, 1:15pm UTC](https://community.mp3tag.de/t/compare-tags-and-remove-artist-from-title-tag/43107/8 "2018-09-28T13:15:45Z")

</div>

> [@Florian](#):
>
> You can try `$replace(%title%,%artist%' - ',)` on those (note, that I've moved the part with the dash `' - '` _after_ the `%artist%` ).
> 
> If you have other characters used as separators, e.g., an underscore `_` you can adapt the function to use that instead.

I See, I already tried this to some of the files and it worked.  
I will now check if there are any other seperators.

Thanks for 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:27pm UTC](https://community.mp3tag.de/t/compare-tags-and-remove-artist-from-title-tag/43107/9 "2026-02-09T12:27:41Z")

</div>


