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

This PR adds regular expression support to the wrap-proxy function.