]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Bug 70016: Clarify that \$0 refers to the entire match, not a captured group
authorRich Bowen <rbowen@apache.org>
Fri, 1 May 2026 15:26:44 +0000 (15:26 +0000)
committerRich Bowen <rbowen@apache.org>
Fri, 1 May 2026 15:26:44 +0000 (15:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933662 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_rewrite.xml

index 421f8484cf56e7e7d3f66b168bff5ffc40133adf..066c2342fcf3b4f794608314ce0f5b7392bd9a6d 100644 (file)
@@ -1296,9 +1296,10 @@ cannot use <code>$N</code> in the substitution string!
 
       <p>Back-references are identifiers of the form
       <code>$</code><strong>N</strong>
-      (<strong>N</strong>=0..9), which will be replaced
-      by the contents of the <strong>N</strong>th group of the
-      matched <em>Pattern</em>. The server-variables are the same
+      (<strong>N</strong>=0..9). <code>$0</code> refers to the
+      entire string matched by the <em>Pattern</em>, while
+      <code>$1</code>..<code>$9</code> refer to the corresponding
+      captured groups from the matched <em>Pattern</em>. The server-variables are the same
       as for the <em>TestString</em> of a
       <directive module="mod_rewrite">RewriteCond</directive>
       directive. The mapping-functions come from the