Firstsawyou commented on a change in pull request #3881:
URL: https://github.com/apache/apisix/pull/3881#discussion_r598586905



##########
File path: docs/en/latest/FAQ.md
##########
@@ -404,3 +404,39 @@ curl -i http://127.0.0.1:9180/apisix/admin/routes/1  -H 
'X-API-KEY: edd1c9f03433
     }
 }'
 ```
+
+## How to use route `uri` for regular matching
+
+The regular matching of uri is achieved through the `vars` field of route.
+
+```shell
+curl -i http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
+{
+    "uri": "/*",
+    "vars": [
+        ["uri", "~~", "/[a-z]+"]

Review comment:
       Agree,  updated.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to