From: Eric Covener
Backreferences can be used in the comparison and in the substituion, + when regular expressions are used, as illustrated in the following example:
+
+ <Location />
+
+ AddOutputFilterByType SUBSTITUTE text/html
+ # "foo=k,bar=k" -> "foo/bar=k"
+ Substitute "s|foo=(\w+),bar=\1|foo/bar=$1"
+
+ </Location>
+
A common use scenario for mod_substitute
is the
situation in which a front-end server proxies requests to a back-end
server which returns HTML with hard-coded embedded URLs that refer
diff --git a/docs/manual/mod/mod_substitute.xml b/docs/manual/mod/mod_substitute.xml
index fb97f88f25..7191740b85 100644
--- a/docs/manual/mod/mod_substitute.xml
+++ b/docs/manual/mod/mod_substitute.xml
@@ -91,6 +91,18 @@
</Location>
+
Backreferences can be used in the comparison and in the substituion, + when regular expressions are used, as illustrated in the following example:
+A common use scenario for mod_substitute
is the
situation in which a front-end server proxies requests to a back-end
server which returns HTML with hard-coded embedded URLs that refer