Capturing groups when using Kong Ingress Controller

Has anyone been able to define Capturing groups [1] as paths on a Kubernetes Ingress Resource when using the kong ingress controller?
According to [2], kong api gateway and kubernetes support different regex, I tried using /base/(?<var_name>[a-z]+), but this is not a valid regex for the kubernetes ingress resource.

What I try to achieve is to rewrite [3] all paths that match the /base/ endpoint and rewrite it to /different_base/v1 endpoint as pointed on this Github Issue [4].

[1] - https://docs.konghq.com/0.14.x/proxy/#capturing-groups
[2] - Kong ingress controller and path based routing
[3] - https://github.com/stone-payments/kong-plugin-url-rewrite
[4] - https://github.com/stone-payments/kong-plugin-url-rewrite/issues/21

Please have a look at the following post:

The regex supported by Ingress spec are POSIX based and not PCRE.


© 2018 Kong Inc.    Terms  •  Privacy  •  FAQ