# Kong proxy with regex matching in URLs

**URL:** <https://discuss.konghq.com/t/kong-proxy-with-regex-matching-in-urls/7967>\
**Category:** Questions\
**Created:** [February 28, 2021, 11:59am UTC](https://discuss.konghq.com/t/kong-proxy-with-regex-matching-in-urls/7967 "2021-02-28T11:59:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![krish7919](https://avatars.discourse-cdn.com/v4/letter/k/eb9ed0/32.png) [@krish7919](https://discuss.konghq.com/u/krish7919)\
**Post date:** [February 28, 2021, 11:59am UTC](https://discuss.konghq.com/t/kong-proxy-with-regex-matching-in-urls/7967/1 "2021-02-28T11:59:48Z")

</div>

I was referring to [Proxy Reference - v2.3.x | Kong - Open-Source API Management and Microservice Management](https://docs.konghq.com/gateway-oss/2.3.x/proxy/#using-regexes-in-paths) on how to use regexes for forwarding, but that isn’t clear enough.

I have 100s (soon 1000s) of services running in Kubernetes fronted by Kong and currently, each one has registered a proxy in Kong. They are of the form: `Redirect "/api/version/<kubernetes_namespace>/<service_id>/<service_subid>/" to "https://api-<service_id>-<service_subid>-<kubernetes_namespace>" `.

I wanted to get rid of the 100s of plugin configurations in Kong and only have a single one to do this matching and forwarding as we follow the same format.

Is this use case supported using regex as mentioned in the link above? If yes, how can I mention the matches in the proxy URI?

Thanks.

---

<div class="post-metadata">

**Author:** ![krish7919](https://avatars.discourse-cdn.com/v4/letter/k/eb9ed0/32.png) [@krish7919](https://discuss.konghq.com/u/krish7919)\
**Post date:** [March 9, 2021, 4:46pm UTC](https://discuss.konghq.com/t/kong-proxy-with-regex-matching-in-urls/7967/2 "2021-03-09T16:46:16Z")

</div>

Bump…

@hbagdi can you please help here or direct me to someone who might know about this? (or a doc would work too)
