You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2026/05/01 15:27:00 UTC
svn commit: r1933663 - httpd/httpd/branches/2.4.x/docs/manual/mod
Author: rbowen
Date: Fri May 1 15:27:00 2026
New Revision: 1933663
Log:
Bug 70016: Clarify that \$0 refers to the entire match, not a captured group
Modified:
httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml
Modified: httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml
==============================================================================
--- httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml Fri May 1 15:26:44 2026 (r1933662)
+++ httpd/httpd/branches/2.4.x/docs/manual/mod/mod_rewrite.xml Fri May 1 15:27:00 2026 (r1933663)
@@ -1289,9 +1289,10 @@ cannot use <code>$N</code> in the substi
<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