(PE-5860) Add regex support to wrap-proxy

Modify wrap-proxy so that the proxied-path variable can be
either a string or a regular expression pattern.