Community Patterns

Community Library Entry

1

Regular Expression
Created·2020-07-17 12:03
Flavor·Golang

`
^/[a-z0-9/]+[^.][a-z0-9]+([?]+.*)?$
`
g
Open regex in editor

Description

Notes:

  • Do not forget to escape the $ by an additional $.
  • Escaping ? like \? does not work. But you could use [?] instead

End result should be like this:

- "traefik.http.middlewares.r6tt-dev-web.stripprefixregex.regex=^/[a-z0-9/]+[^.][a-z0-9]+([?]+.*)?$$"
Submitted by anonymous