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A%2F%2F2%2F{2}%2F{4}%2F{6}%2F{8}%3F{10}%3D{12}%26{14}%3D{16}%2F{18}%2F{20}%2F{22}%2F{24}&{26}%3D{28}%26{30}%3D{32}%26{34}%3D{36}%26{38}%3D{40}%26{42}%3D{44}")

Regex not available on free

concat(“width=500&height=200&gravity=smart&quality=100&url=”, regex_replace(http.request.full_uri, “^(https://)([a-zA-Z0-9.-]+)(/)(.)(/)(.)(/)(.*)(?)([a-zA-Z0-9.-]+)(=)([a-zA-Z0-9.-]+)(&)([a-zA-Z0-9.-]+)(=)([a-zA-Z0-9.-]+)(/)([a-zA-Z0-9.-]+)(/)([a-zA-Z0-9.-]+)(/)([a-zA-Z0-9.-]+)(/)([a-zA-Z0-9.-]+)(&)([a-zA-Z0-9.-]+)(=)([a-zA-Z0-9.-]+)(&)([a-zA-Z0-9.-]+)(=)([a-zA-Z0-9.-]+)(&)([a-zA-Z0-9.-]+)(=)([a-zA-Z0-9.-]+)(&)([a-zA-Z0-9.-_]+)(=)([a-zA-Z0-9.-]+)$”, “https%3A%2F%2F2%2F${2}%2F${4}%2F${6}%2F${8}%3F${10}%3D${12}%26${14}%3D${16}%2F${18}%2F${20}%2F${22}%2F${24}&${26}%3D${28}%26${30}%3D${32}%26${34}%3D${36}%26${38}%3D${40}%26${42}%3D${44}”))

  • “traefik.http.middlewares.test-replacepathregex.replacepathregex.regex=^^(https://)([a-zA-Z0-9.-]+)(/)(.)(/)(.)(/)(.*)(?)([a-zA-Z0-9.-]+)(=)([a-zA-Z0-9.-]+)(&)([a-zA-Z0-9.-]+)(=)([a-zA-Z0-9.-]+)(/)([a-zA-Z0-9.-]+)(/)([a-zA-Z0-9.-]+)(/)([a-zA-Z0-9.-]+)(/)([a-zA-Z0-9.-]+)(&)([a-zA-Z0-9.-]+)(=)([a-zA-Z0-9.-]+)(&)([a-zA-Z0-9.-]+)(=)([a-zA-Z0-9.-]+)(&)([a-zA-Z0-9.-]+)(=)([a-zA-Z0-9.-]+)(&)([a-zA-Z0-9.-_]+)(=)([a-zA-Z0-9.-]+)”
  • “traefik.http.middlewares.test-replacepathregex.replacepathregex.replacement=https%3A%2F%2F2%2F${2}%2F${4}%2F${6}%2F${8}%3F${10}%3D${12}%26${14}%3D${16}%2F${18}%2F${20}%2F${22}%2F${24}&${26}%3D${28}%26${30}%3D${32}%26${34}%3D${36}%26${38}%3D${40}%26${42}%3D${44}”
0%