# Compare part of filename with actual tag

**URL:** <https://community.mp3tag.de/t/compare-part-of-filename-with-actual-tag/42556>\
**Category:** Support\
**Created:** [August 3, 2018, 5:11pm UTC](https://community.mp3tag.de/t/compare-part-of-filename-with-actual-tag/42556 "2018-08-03T17:11:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![willemvaneck](https://community.mp3tag.de/user_avatar/community.mp3tag.de/willemvaneck/32/5561_2.png) [@willemvaneck](https://community.mp3tag.de/u/willemvaneck)\
**Post date:** [August 3, 2018, 5:11pm UTC](https://community.mp3tag.de/t/compare-part-of-filename-with-actual-tag/42556/1 "2018-08-03T17:11:59Z")

</div>

Hi to alll who read this ... I am a new forum member but a long time mp3tag user 🙂

Hi all, first time I am asking help ... usually i manage to get and achieve what i need ... also donated at least one time for sure.

Looking for a script that compares title from my filename and the actual title tag.

All my files are %artist% - %title% structure ... so looking for something like:

$eql(%title%, **second part of filename** ) ... the bold part is what i didn't manage to get.

I must be absolutely simple and too silly to ask ... yet, i didn't manage with my apologies.

Any help would be greatly appreciated.

Thanks,  
Willem.

---

<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:** [August 3, 2018, 5:34pm UTC](https://community.mp3tag.de/t/compare-part-of-filename-with-actual-tag/42556/2 "2018-08-03T17:34:27Z")

</div>

> [@willemvaneck](#):
>
> $eql(%title%, **second part of filename** )

Perhaps:

`$eql(%title%,$regexp(%_filename%,'.* - (.*)',$1))`

---

<div class="post-metadata">

**Author:** ![willemvaneck](https://community.mp3tag.de/user_avatar/community.mp3tag.de/willemvaneck/32/5561_2.png) [@willemvaneck](https://community.mp3tag.de/u/willemvaneck)\
**Post date:** [August 3, 2018, 6:41pm UTC](https://community.mp3tag.de/t/compare-part-of-filename-with-actual-tag/42556/3 "2018-08-03T18:41:24Z")

</div>

Wow that's fast ... much appreciated.

Will try tomorrow and let you know.

Many thanks anyhow !

Willem.

---

<div class="post-metadata">

**Author:** ![willemvaneck](https://community.mp3tag.de/user_avatar/community.mp3tag.de/willemvaneck/32/5561_2.png) [@willemvaneck](https://community.mp3tag.de/u/willemvaneck)\
**Post date:** [August 5, 2018, 9:09am UTC](https://community.mp3tag.de/t/compare-part-of-filename-with-actual-tag/42556/4 "2018-08-05T09:09:08Z")

</div>

And the winner is ... ohrenkino !

Just tried and works fine ... it is part of a longer piece of working checking and comparing my music files and tags.

Much appreciated, nice sunday to all.

Willem.

---

<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-part-of-filename-with-actual-tag/42556/5 "2026-02-09T12:27:35Z")

</div>


