Skip to content

Commit

Permalink
Merge pull request #4991 from Herr-Sepp/patch-2
Browse files Browse the repository at this point in the history
doc: added hint why regular expressions might not be accepted
  • Loading branch information
k8s-ci-robot authored Jan 30, 2020
2 parents 1119281 + 3f4da0f commit 3bf1476
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/user-guide/ingress-path-matching.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
The ingress controller supports **case insensitive** regular expressions in the `spec.rules.http.paths.path` field.
This can be enabled by setting the `nginx.ingress.kubernetes.io/use-regex` annotation to `true` (the default is false).

!!! hint
Kubernetes only accept expressions that comply with the RE2 engine syntax. It is possible that valid expressions accepted by NGINX cannot be used with ingress-nginx, because the PCRE library (used in NGINX) supports a wider syntax than RE2.
See the [RE2 Syntax](https://github.com/google/re2/wiki/Syntax) documentation for differences.

See the [description](./nginx-configuration/annotations.md#use-regex) of the `use-regex` annotation for more details.

```yaml
Expand Down

0 comments on commit 3bf1476

Please sign in to comment.