RewriteCond %{QUERY_STRING} ^(rain|spain|plain|,)+$

For a full explanation of what regex features are
and are not available, see the first result:
http://www.google.com/search?q=mod_rewrite&sourceid=mozilla&start=0&start=0&ie=utf-8&oe=utf-8

--
Ray B. Morris
[EMAIL PROTECTED]

Strongbox - The next generation in site security:
http://www.bettercgi.com/strongbox/

Throttlebox - Intelligent Bandwidth Control
http://www.bettercgi.com/throttlebox/

Strongbox / Throttlebox affiliate program:
http://www.bettercgi.com/affiliates/user/register.php



On 08/21/2007 11:04:58 AM, Soumya Sanyal wrote:
Hello,
 This might not be the most appropriate forum to field this question -
but
I'm having serious issues with the formulation of a regex for Mod
Rewrite. I
actually have a couple of questions to ask :

1> What is particular flavor of the regex engine being used by Mod
Rewrite -
there are ever so slight variations in the different regex engines,
e.g.
linux grep vs perl grep etc.
2> I'm having trouble formulating a good compact regex to represent
the
following problem :

I want my RewriteCond to be conditioned on the %{QUERY_STRING} to
contain
only the powerset of a group of words e.g.

Hence if my set is say {rain,spain,plain}

The RewriteCond should say yes to the following :
http://foo.bar.com/?Operation=rain,spain
http://foo.bar.com/?Operation=plain,rain,rain
http://foo.bar.com/?Operation=plain,rain,spain

But not :
http://foo.bar.com/?Operation=rain,spain,mainly

Help please ?

Reply via email to