Skip to content

why route path doesn't support regexp #6062

Answered by tokers
caibirdme asked this question in Q&A
Discussion options

You must be logged in to vote

You can implement a regex pattern for a route, but you have to resort to the vars field, see https://github.com/api7/lua-resty-expr#new for details.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@caibirdme
Comment options

@tzssangglass
Comment options

Answer selected by caibirdme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants