From: Rich Bowen Date: Thu, 17 Mar 2005 02:10:58 +0000 (+0000) Subject: Move remarks about backreferences to the introductory regex discussion. X-Git-Tag: 2.1.5~283 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=437a48aeb85724ad8753338cf346ac06a44d108b;p=thirdparty%2Fapache%2Fhttpd.git Move remarks about backreferences to the introductory regex discussion. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@157855 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_rewrite.html.en b/docs/manual/mod/mod_rewrite.html.en index cf23dd8087e..827530de5af 100644 --- a/docs/manual/mod/mod_rewrite.html.en +++ b/docs/manual/mod/mod_rewrite.html.en @@ -68,7 +68,6 @@ URLs on the fly

Topics

@@ -86,28 +85,6 @@ URLs on the fly to treat it as a backreference.

top
-

Regex Back-Reference Availability

- -

One important thing here has to be remembered: Whenever you - use parentheses in Pattern or in one of the - CondPattern, back-references are internally created - which can be used with the strings $N and - %N (see below). These are available for creating - the strings Substitution and TestString. - Figure 2 shows to which locations the back-references are - transferred for expansion.

- -

- [Needs graphics capability to display]
- Figure 2: The back-reference flow through a rule. -

-

We know this was a crash course on mod_rewrite's internal - processing. But you will benefit from this knowledge when - reading the following documentation of the available - directives.

- -
top
-

Environment Variables

This module keeps track of two additional (non-standard) diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index 82cacece6e1..e6137a1be40 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -68,29 +68,6 @@ URLs on the fly to treat it as a backreference.

-
Regex Back-Reference Availability - -

One important thing here has to be remembered: Whenever you - use parentheses in Pattern or in one of the - CondPattern, back-references are internally created - which can be used with the strings $N and - %N (see below). These are available for creating - the strings Substitution and TestString. - Figure 2 shows to which locations the back-references are - transferred for expansion.

- -

- [Needs graphics capability to display]
- Figure 2: The back-reference flow through a rule. -

-

We know this was a crash course on mod_rewrite's internal - processing. But you will benefit from this knowledge when - reading the following documentation of the available - directives.

- -
-
Environment Variables

This module keeps track of two additional (non-standard) diff --git a/docs/manual/rewrite/rewrite_intro.html.en b/docs/manual/rewrite/rewrite_intro.html.en index d3ee5adb379..661bd34b917 100644 --- a/docs/manual/rewrite/rewrite_intro.html.en +++ b/docs/manual/rewrite/rewrite_intro.html.en @@ -57,6 +57,26 @@ follows is understood, rather than just copied blindly.

Regular Expressions

Basic regex building blocks

+ +

Regex Back-Reference Availability

+ +

One important thing here has to be remembered: Whenever you + use parentheses in Pattern or in one of the + CondPattern, back-references are internally created + which can be used with the strings $N and + %N (see below). These are available for creating + the strings Substitution and TestString. + Figure 2 shows to which locations the back-references are + transferred for expansion.

+ +

+ [Needs graphics capability to display]
+ Figure 2: The back-reference flow through a rule. +

+ + + +
top

RewriteRule basics

diff --git a/docs/manual/rewrite/rewrite_intro.xml b/docs/manual/rewrite/rewrite_intro.xml index 61e890a69a0..4f5f4cb3208 100644 --- a/docs/manual/rewrite/rewrite_intro.xml +++ b/docs/manual/rewrite/rewrite_intro.xml @@ -57,6 +57,27 @@ follows is understood, rather than just copied blindly.
Regular Expressions

Basic regex building blocks

+ +
Regex Back-Reference Availability + +

One important thing here has to be remembered: Whenever you + use parentheses in Pattern or in one of the + CondPattern, back-references are internally created + which can be used with the strings $N and + %N (see below). These are available for creating + the strings Substitution and TestString. + Figure 2 shows to which locations the back-references are + transferred for expansion.

+ +

+ [Needs graphics capability to display]
+ Figure 2: The back-reference flow through a rule. +

+ +
+ +
RewriteRule basics