# How to use regular expressions in Kong service path

**URL:** <https://discuss.konghq.com/t/how-to-use-regular-expressions-in-kong-service-path/2547>\
**Category:** General\
**Tags:** kong-gateway\
**Created:** [January 2, 2019, 1:03pm UTC](https://discuss.konghq.com/t/how-to-use-regular-expressions-in-kong-service-path/2547 "2019-01-02T13:03:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fazlerabby7](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/fazlerabby7/32/692_2.png) [@fazlerabby7](https://discuss.konghq.com/u/fazlerabby7)\
**Post date:** [January 2, 2019, 1:03pm UTC](https://discuss.konghq.com/t/how-to-use-regular-expressions-in-kong-service-path/2547/1 "2019-01-02T13:03:34Z")

</div>

I want to route `http://kong-gateway/api/v1/user/(?P<uuid>[\w\d\-]+)` to `http://user-service/user/(?P<uuid>[\w\d\-]+)`.

To do that, I need to create a service with host: `user-service` and path: `/user/(?P<uuid>[\w\d\-]+)`. But when I try to create a service with these configurations with Kong Dashboard, Kong complains: `character outside of the reserved list of RFC 3986`.

How to solve this problem?

---

<div class="post-metadata">

**Author:** ![rockmantist](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@rockmantist](https://discuss.konghq.com/u/rockmantist)\
**Post date:** [January 28, 2019, 4:56am UTC](https://discuss.konghq.com/t/how-to-use-regular-expressions-in-kong-service-path/2547/2 "2019-01-28T04:56:49Z")

</div>

@fazlerabby7 did you manage to get it work ? i’m facing the same issue.

---

<div class="post-metadata">

**Author:** ![fazlerabby7](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/fazlerabby7/32/692_2.png) [@fazlerabby7](https://discuss.konghq.com/u/fazlerabby7)\
**Post date:** [January 28, 2019, 6:24am UTC](https://discuss.konghq.com/t/how-to-use-regular-expressions-in-kong-service-path/2547/3 "2019-01-28T06:24:08Z")

</div>

Still not, planning to write a plugin for this.

---

<div class="post-metadata">

**Author:** ![rockmantist](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@rockmantist](https://discuss.konghq.com/u/rockmantist)\
**Post date:** [February 12, 2019, 3:49am UTC](https://discuss.konghq.com/t/how-to-use-regular-expressions-in-kong-service-path/2547/4 "2019-02-12T03:49:14Z")

</div>

@thibaultcha need help.
