Regex Priority Order
Summary
If Regex Priority Order is set, the route will only match incoming requests with a path that matches the specified regular expression. The supported syntax is the same as the Go regexp package which is based on re2.
How to configure
- Core
- Enterprise
- Kubernetes
YAML/JSON setting | Type | Usage |
---|---|---|
regex_priority_order | uint32 | optional |
Set Regex Priority Order in the Console:
- Enter a regular expression in the Regex field
- Enter the Regex Priority Order
Kubernetes does not support Regex Priority Order
Examples
regex: '^/(admin|superuser)/.*$'
regex_priority_order: 1