# Test/match string starting/ending/containing using regex or filter operators

**URL:** <https://forum.ghost.org/t/test-match-string-starting-ending-containing-using-regex-or-filter-operators/40816>\
**Category:** Themes\
**Created:** [August 29, 2023, 10:12am UTC](https://forum.ghost.org/t/test-match-string-starting-ending-containing-using-regex-or-filter-operators/40816 "2023-08-29T10:12:54Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![rainbowour](https://avatars.discourse-cdn.com/v4/letter/r/eada6e/32.png) [@rainbowour](https://forum.ghost.org/u/rainbowour)\
**Post date:** [August 30, 2023, 2:12pm UTC](https://forum.ghost.org/t/test-match-string-starting-ending-containing-using-regex-or-filter-operators/40816/5 "2023-08-30T14:12:10Z")

</div>

Yes of course !

My goal was to have a customizable nav menu with sub menu

Based on this answer: [Dropdown menu for main nav - #5 by denvergeeks](https://forum.ghost.org/t/dropdown-menu-for-main-nav/15727/5)  
I decided to create a naming convention for my tags like : activity-bike, activity-trail, activity-swim, etc.

And from the Ghost back office I wanted to be able to create a nav called `Activities[activities]` and the theme would know it has to fetch tags starting with the word between brackets.  
Simple dev but cannot find a way to match on the label…

---

_[View the full topic](https://forum.ghost.org/t/test-match-string-starting-ending-containing-using-regex-or-filter-operators/40816)._
