Re: Word boundaries in regexps (Apache bug?)

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

 



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: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux