#54 regexp expansion issue

open
nobody
None
5
6 days ago
2006-03-30
Marc Haber
No

Hi,

I am trying to define a variable for a rule like

/var/www/@@{LOC_WEBSITES}/logs/(access|error)\.log$
Logs

I have found out that

@@define LOC_WEBSITES (www\.site-a\.example|
www\.site-b\.example|www\.site-c\.example)

works fine, while

@@define LOC_WEBSITES www\.(site-a\.example|
site-b\.example|site-c\.example)

creates a rule that never matches.

This is not what I would expect from a regexp parser.
What is going wrong here?

Greetings
Marc

Discussion