[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help understanding this apache2 directive from apache2.conf

On Wed, Nov 30, 2005 at 07:35:40PM +0200, Maxim Vexler wrote:
> Hi,
> 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...

It looks to me like a shell glob.

> Is it: "Match any file Not beginning with any char followed by #" 0 or
> more times ?

As a regular expression it would mean match /etc/apache2/conf.d/ and
then zero or more characters other than "." and "#".  This would be
strange: it would rule out files named something.conf.  As a shell glob
it means match /etc/apache2/conf.d/ then one character besides "." or
"#" then zero or more characters.

Reply to: