Tom Evans wrote:
On Tue, 2009-09-15 at 12:52 +0200, André Warnier wrote:
Victor Porton wrote:
...
<!--#if expr="$QUERY_STRING = /city/" -->
I am not sure which add-on module of Apache, and which version you are talking about, but are you sure that the above right-hand side is interpreted as a regexp, as opposed to a simple string ?
Can you point us to the relevant documentation ?




http://httpd.apache.org/docs/2.2/mod/mod_include.html#flowctrl

string1 = string2
string1 == string2
string1 != string2
Compare string1 with string2. If string2 has the form /string2/
        then it is treated as a regular expression. Regular expressions
        are implemented by the PCRE engine and have the same syntax as
        those in perl 5. Note that == is just an alias for = and behaves
        exactly the same way.
No idea why it isn't working for him.

Allright then.  And neither have I.
Victor, what about this for test #2 :
<!--#if expr="$QUERY_STRING = /(^|\b)city(\b|$)/" -->


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [email protected]
  "   from the digest: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to