# Can't figure out how to use contains filter (~)

**URL:** <https://forum.ghost.org/t/cant-figure-out-how-to-use-contains-filter/37043>\
**Category:** Integrations & API\
**Created:** [March 13, 2023, 4:59pm UTC](https://forum.ghost.org/t/cant-figure-out-how-to-use-contains-filter/37043 "2023-03-13T16:59:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Swapnil\_Banga](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/swapnil_banga/32/23524_2.png) [@Swapnil\_Banga](https://forum.ghost.org/u/Swapnil_Banga)\
**Post date:** [March 13, 2023, 4:59pm UTC](https://forum.ghost.org/t/cant-figure-out-how-to-use-contains-filter/37043/1 "2023-03-13T16:59:41Z")

</div>

Whenever I try to use the filter like this slug:~the-cashmere-guide  
I keep getting an error with the message “Error parsing filter”  
What am I doing wrong? Please help, thanks!

---

<div class="post-metadata">

**Author:** ![Swapnil\_Banga](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/swapnil_banga/32/23524_2.png) [@Swapnil\_Banga](https://forum.ghost.org/u/Swapnil_Banga)\
**Post date:** [March 13, 2023, 5:01pm UTC](https://forum.ghost.org/t/cant-figure-out-how-to-use-contains-filter/37043/2 "2023-03-13T17:01:45Z")

</div>

Never mind, I figured it out after writing this post  
The slug needs to be put in single quotes like this slug:~‘the-cashmere-guide’
