From 437a48aeb85724ad8753338cf346ac06a44d108b Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Thu, 17 Mar 2005 02:10:58 +0000 Subject: [PATCH] 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 --- docs/manual/mod/mod_rewrite.html.en | 23 ----------------------- docs/manual/mod/mod_rewrite.xml | 23 ----------------------- docs/manual/rewrite/rewrite_intro.html.en | 20 ++++++++++++++++++++ docs/manual/rewrite/rewrite_intro.xml | 21 +++++++++++++++++++++ 4 files changed, 41 insertions(+), 46 deletions(-) diff --git a/docs/manual/mod/mod_rewrite.html.en b/docs/manual/mod/mod_rewrite.html.en index cf23dd8087..827530de5a 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 82cacece6e..e6137a1be4 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 d3ee5adb37..661bd34b91 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 61e890a69a..4f5f4cb320 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 -- 2.50.1