1
0
mirror of https://github.com/containous/traefik.git synced 2024-10-27 01:55:17 +03:00

docs: add named groups details to Regexp Syntax section

This commit is contained in:
kerrsmith 2021-11-08 09:06:05 +00:00 committed by GitHub
parent 69d504c905
commit a13b03ef3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"