On Tue, 2009-09-15 at 13:29 +0200, André Warnier wrote:
> 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|$)/" -->

After this change the test 2 passes, but it does not pass if I enter
http://localhost/test2.shtml?city=2
(I need it to pass in this case also.)

BTW, I am about Apache 2.2.13 Linux.

-- 
Victor Porton - http://portonvictor.org


---------------------------------------------------------------------
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to