# Titles and filenames not matching

**URL:** <https://community.mp3tag.de/t/titles-and-filenames-not-matching/51080>\
**Category:** Support\
**Created:** [December 8, 2020, 8:15pm UTC](https://community.mp3tag.de/t/titles-and-filenames-not-matching/51080 "2020-12-08T20:15:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamchater](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/bbce88/32.png) [@adamchater](https://community.mp3tag.de/u/adamchater)\
**Post date:** [December 8, 2020, 8:15pm UTC](https://community.mp3tag.de/t/titles-and-filenames-not-matching/51080/1 "2020-12-08T20:15:05Z")

</div>

Hi all, I am using the following filter to show files where the title field isn't part of the filename, which does work well:

"$ifgreater($strstr(%\_filename%,%title%),0,yes,no)" IS no

However, this shows files where characters which aren't allowed by Windows are in the title and (rightly) are not part of the filename. For example, a track has a title "What Ever Happened?" but the filename ends with "What Ever Happened.mp3" as you can't have a ? as part of a filename in Windows.

How can I tweak the above filter to exclude titles containing characters which aren't allowed as part of the filename please? Looking at my library, the following characters as the main culprits: ? : / "

Filtering out those four characters from the filter should, I think, show the files which really do have mismatching titles and names, but I cannot work out how to do this!

---

<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:** [December 8, 2020, 8:19pm UTC](https://community.mp3tag.de/t/titles-and-filenames-not-matching/51080/2 "2020-12-08T20:19:03Z")

</div>

> [@adamchater](#):
>
> "$ifgreater($strstr(%\_filename%,%title%),0,yes,no)" IS no

Perhaps something like this works:  
`"$ifgreater($strstr(%_filename%,$validate(%title%)),0,yes,no)" IS no`  
or  
`"$ifgreater($strstr(%_filename%,$replace(%title%,?,,/,,:,))),0,yes,no)" IS no`

---

<div class="post-metadata">

**Author:** ![adamchater](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/bbce88/32.png) [@adamchater](https://community.mp3tag.de/u/adamchater)\
**Post date:** [December 8, 2020, 8:24pm UTC](https://community.mp3tag.de/t/titles-and-filenames-not-matching/51080/3 "2020-12-08T20:24:14Z")

</div>

Thank you for your reply - they don't seem to work though, sorry!

---

<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:** [December 8, 2020, 8:33pm UTC](https://community.mp3tag.de/t/titles-and-filenames-not-matching/51080/4 "2020-12-08T20:33:19Z")

</div>

> [@ohrenkino](#):
>
> "$ifgreater($strstr(%\_filename%,$validate(%title%)),0,yes,no)" IS no

I forgot a comma:  
`"$ifgreater($strstr(%_filename%,$validate(%title%,)),0,yes,no)" IS no`

---

<div class="post-metadata">

**Author:** ![adamchater](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/bbce88/32.png) [@adamchater](https://community.mp3tag.de/u/adamchater)\
**Post date:** [December 8, 2020, 8:46pm UTC](https://community.mp3tag.de/t/titles-and-filenames-not-matching/51080/5 "2020-12-08T20:46:38Z")

</div>

That works, thank you so much! Not many mismatches now which is good 😀

Thank you for your 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:** [January 7, 2021, 8:46pm UTC](https://community.mp3tag.de/t/titles-and-filenames-not-matching/51080/6 "2021-01-07T20:46:39Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
