Replies: 4 comments 2 replies
-
This will be resolved as part of my work on #737 Currently regex will work in the path, but the capture groups cannot be sent to the downstream. After this work, this will be possible. |
Beta Was this translation helpful? Give feedback.
-
@philproctor, that's great to hear! Thanks for the update. 🙌 |
Beta Was this translation helpful? Give feedback.
-
Would this allow routing restrictions, so that if certain values appear in the upstream route they will go to destination 1, if others appear go to destination 2? Defining 2 ReRoutes is fine, but I want to have something like: myurl/customer/(Bob|Andy)/accounts go to destination 1, Thanks. |
Beta Was this translation helpful? Give feedback.
-
Regular expressions in templates are not supported/implemented!
coincidental behavior
No documentation at all! Not implemented! |
Beta Was this translation helpful? Give feedback.
-
Hello,
I went through the documentation page on routing and didn't notice any mention for using regular expressions in path template properties.
After haphazardly experimenting with different expressions for
UpstreamPathTemplate
, I noticed a simple expression like(.+)
appeared to be able to match against input, but I couldn't figure out whether the captured group could be used inDownstreamPathTemplate
. Or perhaps this was purely coincidental behaviour.I just wanted to ask whether or not there was support for using regular expressions to capture fragments of a route. If there's any documentation I missed regarding this, please point me in the right direction.
Currently using version 12.0.1.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions