On Wed, Nov 30, 2005 at 07:35:40PM +0200, Maxim Vexler wrote: > In [/etc/apache2/apache2.conf] file there's this line : > <<< > # Include generic snippets of statements > Include /etc/apache2/conf.d/[^.#]* > >>> > > What does the [^.#]* say ? > I know that it's regular expression but I've yet to see this regex syntax... > > Is it: "Match any file Not beginning with any char followed by #" 0 or > more times ?
According to http://httpd.apache.org/docs/2.0/mod/core.html#include it's a shell wildcard, not a regex in the strict sense of the meaning. In particular, this makes a difference as to how the * is interpreted. The pair of brackets specifies a character class, and the ^ is negating it. And the * simply denotes "anything", as usual. So, it means "any file in /etc/apache2/conf.d/ not beginning with . or #". Cheers, Almut -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]