[Bug 70016] New: RewriteRule Directive: Incorrect definition of $0 back-reference

[email protected]
Newsgroups gmane.comp.apache.documentation
Message-ID <[email protected]/bugzilla/>
https://bz.apache.org/bugzilla/show_bug.cgi?id=70016

            Bug ID: 70016
           Summary: RewriteRule Directive: Incorrect definition of $0
                    back-reference
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: All
               URL: https://httpd.apache.org/docs/trunk/en/mod/mod_rewrite
                    .html#rewriterule
                OS: All
            Status: NEW
          Severity: trivial
          Priority: P3
         Component: Documentation
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

According to the documentation of the RewriteRule directive:
> Back-references are identifiers of the form $N (N=0..9), which will be replaced by the contents of the Nth group of the matched Pattern.

While this is approximately correct for 1…9, there is obviously no “zeroth”
group.
I suggest:
> Back-references of the first type are identifiers of the form $n (n=0…9). Back-references are replaced by the contents of the nth group of the matched Pattern, except for $0, which is replaced by the whole matched path.

By the way, I suggest moving that directly in bullet #1.

🅭🄍: https://www.philippecloutier.com/Common+infrastructure+licensing#its

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.