# Filter for Titles with two apostrophes

**URL:** https://community.mp3tag.de/t/filter-for-titles-with-two-apostrophes/65618
**Category:** Support
**Created:** [August 15, 2024, 3:15pm UTC](https://community.mp3tag.de/t/filter-for-titles-with-two-apostrophes/65618 "2024-08-15T15:15:21Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![TersonWatt](https://community.mp3tag.de/user_avatar/community.mp3tag.de/tersonwatt/32/12613_2.png) [@TersonWatt](https://community.mp3tag.de/u/TersonWatt)
#### Post date: [August 15, 2024, 3:15pm UTC](https://community.mp3tag.de/t/filter-for-titles-with-two-apostrophes/65618/1 "2024-08-15T15:15:21Z")

</div>

Hi

I can use the following RegExp to Filter for Titles with open and closed brackets : `"$if($eql($regexp(%title%,\(.*\),),%title%),yes,no)" IS no`

but when I try to find Titles with two apostrophes it doesn't work:  
`"$if($eql($regexp(%title%,'.*',),%title%),yes,no)" IS no`

I thought the problem might have something to do with filtering for the same character but this expression finds Titles with two "z"  
`"$if($eql($regexp(%title%,z.*z,),%title%),yes,no)"` IS no

Any help would be appreciated. Thanks in advance.

Cheers

Leo

---

<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 15, 2024, 3:19pm UTC](https://community.mp3tag.de/t/filter-for-titles-with-two-apostrophes/65618/2 "2024-08-15T15:19:13Z")

</div>

See eg.g. here:

> [@How to filter for double quote (")](https://community.mp3tag.de/t/how-to-filter-for-double-quote/46994/5):
>
> Yes, as your topic title says " How to filter for double quote (“)" The ascii code for an apostrophe is 39. So a simple modification of the filter would do the trick: "$ifgreater($strstr(%title%,$char(39)$char(39)),0,yes,no)" IS yes

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [August 15, 2024, 3:19pm UTC](https://community.mp3tag.de/t/filter-for-titles-with-two-apostrophes/65618/3 "2024-08-15T15:19:13Z")

</div>

Maybe the problem is the apostrophe as a "[Character with Special Functionality](https://docs.mp3tag.de/format/#characters-with-special-functionality)".

Do you ask for

> [@TersonWatt](#):
>
> Titles with two apostrophes

as in  
`My Title has one' and another' apostrophe`  
or in  
`My Title has a double "quote" similar as two apostrophes`

---

<div class="post-metadata">

### Author: ![TersonWatt](https://community.mp3tag.de/user_avatar/community.mp3tag.de/tersonwatt/32/12613_2.png) [@TersonWatt](https://community.mp3tag.de/u/TersonWatt)
#### Post date: [August 15, 2024, 3:24pm UTC](https://community.mp3tag.de/t/filter-for-titles-with-two-apostrophes/65618/4 "2024-08-15T15:24:11Z")

</div>

Thanks for your vour very fast reply. I'm trying to filter for two apostrophes that could be anywhere in the Title not double quotes.

---

<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 15, 2024, 3:27pm UTC](https://community.mp3tag.de/t/filter-for-titles-with-two-apostrophes/65618/5 "2024-08-15T15:27:53Z")

</div>

> [@TersonWatt](#):
>
> "$if($eql($regexp(%title%,'.\*',),%title%),yes,no)" IS no

Would this work:  
`"$if($eql($regexp(%title%,$char(39).*$char(39),),%title%),yes,no)" IS no`

---

<div class="post-metadata">

### Author: ![TersonWatt](https://community.mp3tag.de/user_avatar/community.mp3tag.de/tersonwatt/32/12613_2.png) [@TersonWatt](https://community.mp3tag.de/u/TersonWatt)
#### Post date: [August 15, 2024, 3:28pm UTC](https://community.mp3tag.de/t/filter-for-titles-with-two-apostrophes/65618/6 "2024-08-15T15:28:17Z")

</div>

Thanks for your help. I used an extra quotation mark as suggested on the page you linked to and it works. Thanks again  
e.g.` "$if($eql($regexp(%title%,''.*'',),%title%),yes,no)" IS no`

---

<div class="post-metadata">

### Author: ![TersonWatt](https://community.mp3tag.de/user_avatar/community.mp3tag.de/tersonwatt/32/12613_2.png) [@TersonWatt](https://community.mp3tag.de/u/TersonWatt)
#### Post date: [August 15, 2024, 3:31pm UTC](https://community.mp3tag.de/t/filter-for-titles-with-two-apostrophes/65618/7 "2024-08-15T15:31:33Z")

</div>

Your solution works too. Thanks

---

<div class="post-metadata">

### Author: ![TersonWatt](https://community.mp3tag.de/user_avatar/community.mp3tag.de/tersonwatt/32/12613_2.png) [@TersonWatt](https://community.mp3tag.de/u/TersonWatt)
#### Post date: [August 15, 2024, 3:43pm UTC](https://community.mp3tag.de/t/filter-for-titles-with-two-apostrophes/65618/8 "2024-08-15T15:43:46Z")

</div>

Thanks to **ohrenkino** and **LyricsLover** for your rapid replies and the solutions. Your help is much appreciated. Thanks.

---

<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: [September 14, 2024, 3:44pm UTC](https://community.mp3tag.de/t/filter-for-titles-with-two-apostrophes/65618/9 "2024-09-14T15:44:27Z")

</div>

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