From: Rich Bowen Date: Fri, 25 Mar 2005 00:24:52 +0000 (+0000) Subject: Started filling in some of the details of an introduction to rewriting X-Git-Tag: 2.1.5~269 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a357ab117571b4da009031a3a382595acc8acc9;p=apache Started filling in some of the details of an introduction to rewriting URLs. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@158972 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/rewrite/rewrite_intro.html.en b/docs/manual/rewrite/rewrite_intro.html.en index 661bd34b91..98822eac74 100644 --- a/docs/manual/rewrite/rewrite_intro.html.en +++ b/docs/manual/rewrite/rewrite_intro.html.en @@ -56,7 +56,36 @@ follows is understood, rather than just copied blindly.
top

Regular Expressions

-

Basic regex building blocks

+ +

mod_rewrite uses the Perl Compatible +Regular Expression vocabulary. In this document, we do not attempt +to provide a detailed reference to regular expressions. For that, we +recommend the PCRE man pages, the +Perl regular +expression man page, and Mastering +Regular Expressions, by Jeffrey Friedl.

+ +

In this document, we attempt to provide enough of a regex vocabulary +to get you started, without being overwhelming, in the hope that +RewriteRules will be scientific +formulae, rather than magical incantations.

+ +

Regex vocabulary

+ +

The following are the minimal building blocks you will need, in order +to write regular expressions and RewriteRules.

+ + + + + + + + + +
CharacterMeaning
.Matches any character
+ +

Regex Back-Reference Availability

@@ -75,8 +104,6 @@ follows is understood, rather than just copied blindly.

- -
top

RewriteRule basics

diff --git a/docs/manual/rewrite/rewrite_intro.xml b/docs/manual/rewrite/rewrite_intro.xml index 4f5f4cb320..3336169bde 100644 --- a/docs/manual/rewrite/rewrite_intro.xml +++ b/docs/manual/rewrite/rewrite_intro.xml @@ -56,7 +56,38 @@ follows is understood, rather than just copied blindly.
Regular Expressions -

Basic regex building blocks

+ +

mod_rewrite uses the Perl Compatible +Regular Expression vocabulary. In this document, we do not attempt +to provide a detailed reference to regular expressions. For that, we +recommend the PCRE man pages, the +Perl regular +expression man page, and Mastering +Regular Expressions, by Jeffrey Friedl.

+ +

In this document, we attempt to provide enough of a regex vocabulary +to get you started, without being overwhelming, in the hope that +RewriteRules will be scientific +formulae, rather than magical incantations.

+ +
Regex vocabulary + +

The following are the minimal building blocks you will need, in order +to write regular expressions and RewriteRules.

+ + + + + + + + + +
CharacterMeaning
.Matches any character
+ +
Regex Back-Reference Availability @@ -76,8 +107,6 @@ follows is understood, rather than just copied blindly.

- -
RewriteRule basics