code: func NewRedirectRegex(ctx context.Context, next http.Handler, conf config.RedirectRegex, name string) (http.Handler, error) {
  	logger := middlewares.GetLogger(ctx, name, typeRegexName)
  	logger.Debug("Creating middleware")
  	logger.Debugf("Setting up redirection from %s to %s", conf.Regex, conf.Replacement)
  
  	return newRedirect(ctx, next, conf.Regex, conf.Replacement, conf.Permanent, name)
  }
docs: // NewRedirectRegex creates a redirect middleware.