You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2016/02/02 12:11:23 UTC

svn commit: r1728083 - /httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml

Author: rbowen
Date: Tue Feb  2 11:11:23 2016
New Revision: 1728083

URL: http://svn.apache.org/viewvc?rev=1728083&view=rev
Log:
Resolves comment about how regex matches, at
http://httpd.apache.org/docs/current/mod/mod_rewrite.html#comments_thread

Modified:
    httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml

Modified: httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml?rev=1728083&r1=1728082&r2=1728083&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml Tue Feb  2 11:11:23 2016
@@ -570,7 +570,6 @@ AliasMatch "^/myapp" "/opt/myapp-1.2.3"
                 respectively.</p>
 
                 <p>Those that are special to mod_rewrite include those below.</p>
-        <note>
                 <dl>
                   <dt><code>API_VERSION</code></dt>
 
@@ -644,7 +643,6 @@ AliasMatch "^/myapp" "/opt/myapp-1.2.3"
                   (decoded), unlike most other variables below.</dd>
 
                 </dl>
-</note>
         </li>
       </ul>
 
@@ -1061,6 +1059,13 @@ RewriteRule  "^/$"                 "/hom
       <code>%{HTTP_HOST}</code>, <code>%{SERVER_PORT}</code>, or
       <code>%{QUERY_STRING}</code> variables respectively.</p>
 
+      <p>In any case, remember that regular expressions are substring
+      matches. That is, you don't need the regex to describe the entire
+      string, just the part that you wish to match. Thus, using a regex
+      of <code>.</code> is often sufficient rather than <code>.*</code>,
+      and the regex <code>abc</code> is <strong>not</code> the same as
+      <code>^abc$</code>.</p>
+
 </note>
 
 <note><title>Per-directory Rewrites</title>