Regular Expressions 101

Community Patterns

nginx jenkins routing fix

1

Regular Expression
PCRE (PHP <7.3)

/
^(\/[a-z-_\d\/]+[^\/^?^-^=^\.])$
/

Description

jenkins url rewrites form paths ending without a '/' character removed the port part of the url - this fixed that.

also paths with an uppercase letter are required to NOT have '/' at the end so those cases are ignored

Submitted by talmobi - 8 years ago