# Regex or wildcard path matching in routes.yaml

**URL:** <https://forum.ghost.org/t/regex-or-wildcard-path-matching-in-routes-yaml/62605>\
**Category:** Routing\
**Created:** [April 17, 2026, 7:05am UTC](https://forum.ghost.org/t/regex-or-wildcard-path-matching-in-routes-yaml/62605 "2026-04-17T07:05:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Corentin\_Verrier](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/corentin_verrier/32/38547_2.png) [@Corentin\_Verrier](https://forum.ghost.org/u/Corentin_Verrier)\
**Post date:** [April 17, 2026, 7:05am UTC](https://forum.ghost.org/t/regex-or-wildcard-path-matching-in-routes-yaml/62605/1 "2026-04-17T07:05:54Z")

</div>

Hello all !

In the routes.yaml file, is there a way to filter from a part of the tag ?

Here are two examples that will be more clear (i hope) :

1. 

from tags like that `painter-firstname-name`, i want routes `/painter/firstname-name`

I’d like to do something like :

`routes:`  
` /painter/{slug}/:`  
` controller: channel`  
` filter: tag:painter-{slug}`

1. 

from tags like that `sculptor-firstname-name`, i want routes `/sculptor/firstname-name`

I’d like to do something like :

`routes:`  
` /sculptor/{slug}/:`  
` controller: channel`  
` filter: tag:sculptor-{slug}`

* * *

In another way, i’m trying to hack the inhability to have parent and children tags or to create custom types/objects. But maybe, i’m trying the wrong way…

Thx by advance for your answers
