From e04102ffe64a1335b2df5743cc9bb567d646d232 Mon Sep 17 00:00:00 2001
From: Joshua Slive %{QUERY_STRING}
variables respectively.
Some hints on the syntax of regular - expressions:
- --Text: -.
Any single character -[
chars]
Character class: Any character of the class ``chars'' -[^
chars]
Character class: Not a character of the class ``chars'' - text1|
text2 Alternative: text1 or text2 - -Quantifiers: -?
0 or 1 occurrences of the preceding text -*
0 or N occurrences of the preceding text (N > 0) -+
1 or N occurrences of the preceding text (N > 1) - -Grouping: -(
text)
Grouping of text - (used either to set the borders of an alternative as above, or - to make backreferences, where the Nth group can - be referred to on the RHS of a RewriteRule as$
N) - -Anchors: -^
Start-of-line anchor -$
End-of-line anchor - -Escaping: -\
char escape the given char - (for instance, to specify the chars ".[]()
" etc.) -
For more information about regular expressions, have a look at the - perl regular expression manpage ("perldoc - perlre"). If you are interested in more detailed - information about regular expressions and their variants - (POSIX regex etc.) the following book is dedicated to this topic:
- -
- Mastering Regular Expressions, 2nd Edition
- Jeffrey E.F. Friedl
- O'Reilly & Associates, Inc. 2002
- ISBN 0-596-00289-0
-
For some hints on regular + expressions, see + the mod_rewrite + Introduction.
In mod_rewrite, the NOT character
('!
') is also available as a possible pattern
diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml
index 62234517a1..c68253f4a5 100644
--- a/docs/manual/mod/mod_rewrite.xml
+++ b/docs/manual/mod/mod_rewrite.xml
@@ -1097,51 +1097,10 @@ RewriteRule ^/$ /homepage.std.html [L]
%{QUERY_STRING}
variables respectively.
Some hints on the syntax of
-Text: -.
Any single character -[
chars]
Character class: Any character of the class ``chars'' -[^
chars]
Character class: Not a character of the class ``chars'' - text1|
text2 Alternative: text1 or text2 - -Quantifiers: -?
0 or 1 occurrences of the preceding text -*
0 or N occurrences of the preceding text (N > 0) -+
1 or N occurrences of the preceding text (N > 1) - -Grouping: -(
text)
Grouping of text - (used either to set the borders of an alternative as above, or - to make backreferences, where the Nth group can - be referred to on the RHS of a RewriteRule as$
N) - -Anchors: -^
Start-of-line anchor -$
End-of-line anchor - -Escaping: -\
char escape the given char - (for instance, to specify the chars ".[]()
" etc.) -
For more information about regular expressions, have a look at the - perl regular expression manpage ("perldoc - perlre"). If you are interested in more detailed - information about regular expressions and their variants - (POSIX regex etc.) the following book is dedicated to this topic:
- -
- Mastering Regular Expressions, 2nd Edition
- Jeffrey E.F. Friedl
- O'Reilly & Associates, Inc. 2002
- ISBN 0-596-00289-0
-
For some hints on
In mod_rewrite, the NOT character
('!
') is also available as a possible pattern
diff --git a/docs/manual/rewrite/rewrite_intro.html.en b/docs/manual/rewrite/rewrite_intro.html.en
index 0fd0f0faa4..decc55a979 100644
--- a/docs/manual/rewrite/rewrite_intro.html.en
+++ b/docs/manual/rewrite/rewrite_intro.html.en
@@ -97,7 +97,7 @@ well as write your own.
.
.
c.t
will match cat
,
cot
, cut
, etc.+
[ ]
c[uoa]t
matches cut
,
cot
or cat
.!
[^ ]
c[^/]t
matches cat
or c=t
but not c/t
In mod_rewrite
the !
character can be
+used before a regular expression to negate it. This is, a string will
+be considered to have matched only if it does not match the rest of
+the expression.
.
.
c.t
will match cat
,
cot
, cut
, etc.+
[ ]
c[uoa]t
matches cut
,
cot
or cat
.!
[^ ]
c[^/]t
matches cat
or c=t
but not c/t
In !
character can be
+used before a regular expression to negate it. This is, a string will
+be considered to have matched only if it does not match the rest of
+the expression.