Return-Path: Mailing-List: contact apache-docs-help@apache.org; run by ezmlm Delivered-To: mailing list apache-docs@apache.org Received: (qmail 43275 invoked by uid 500); 1 Nov 2000 19:18:06 -0000 Delivered-To: apmail-httpd-docs-2.0-cvs@apache.org Received: (qmail 43218 invoked by uid 1173); 1 Nov 2000 19:18:06 -0000 Date: 1 Nov 2000 19:18:06 -0000 Message-ID: <20001101191806.43217.qmail@locus.apache.org> From: slive@locus.apache.org To: httpd-docs-2.0-cvs@apache.org Subject: cvs commit: httpd-docs-2.0/htdocs/manual/misc FAQ-B.html slive 00/11/01 11:18:05 Modified: htdocs/manual/misc FAQ-B.html Log: Fix in regex example. PR: 6777 Revision Changes Path 1.4 +4 -4 httpd-docs-2.0/htdocs/manual/misc/FAQ-B.html Index: FAQ-B.html =================================================================== RCS file: /home/cvs/httpd-docs-2.0/htdocs/manual/misc/FAQ-B.html,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- FAQ-B.html 2000/01/30 15:47:42 1.3 +++ FAQ-B.html 2000/11/01 19:18:03 1.4 @@ -31,7 +31,7 @@

Apache Server Frequently Asked Questions

- $Revision: 1.3 $ ($Date: 2000/01/30 15:47:42 $) + $Revision: 1.4 $ ($Date: 2000/11/01 19:18:03 $)

The latest version of this FAQ is always available from the main @@ -382,14 +382,14 @@ Regular expressions are a way of describing a pattern - for example, "all the words that begin with the letter A" or "every 10-digit phone number" or even "Every sentence with two commas in it, and no capital letter Q". - Regular expressions (aka "regexp"s) are useful in Apache because they + Regular expressions (aka "regex"s) are useful in Apache because they let you apply certain attributes against collections of files or resources in very flexible ways - for example, all .gif and .jpg files under - any "images" directory could be written as /.*\/images\/.*[jpg|gif]/. + any "images" directory could be written as /\/images\/.*(jpg|gif)$/.

The best overview around is probably the one which comes with Perl. - We implement a simple subset of Perl's regexp support, but it's + We implement a simple subset of Perl's regex support, but it's still a good way to learn what they mean. You can start by going to the