Added support for custom regex in variable part of routes.