From a13b03ef3dbccbed25cd1d657e52cbdcd52283ac Mon Sep 17 00:00:00 2001 From: kerrsmith <12290040+kerrsmith@users.noreply.github.com> Date: Mon, 8 Nov 2021 09:06:05 +0000 Subject: [PATCH] docs: add named groups details to Regexp Syntax section --- docs/content/routing/routers/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/content/routing/routers/index.md b/docs/content/routing/routers/index.md index ef221ad0a..c0508c16c 100644 --- a/docs/content/routing/routers/index.md +++ b/docs/content/routing/routers/index.md @@ -251,6 +251,7 @@ The table below lists all the available matchers: `HostRegexp` and `Path` accept an expression with zero or more groups enclosed by curly braces. Named groups can be like `{name:pattern}` that matches the given regexp pattern or like `{name}` that matches anything until the next dot. + The group name (`name` is the above examples) is an arbitrary value. Any pattern supported by [Go's regexp package](https://golang.org/pkg/regexp/) may be used (example: `{subdomain:[a-z]+}.{domain}.com`). !!! info "Combining Matchers Using Operators and Parenthesis"