I'm not good at regex, but according to squidguard website, ? means :  None
or one of the preceding.

So , maybe the problem is : (orgie|sex)?  means orgie, or sex, or none of
these words. 
i.e, almost everything. When i test your regex, any request matches. Not
only those with "=" sign in them.

And btw, most of the search engines use "&" as separator for search terms,
and you did not put it in your regex.

I would try something like :

(^|[-.?+=_0-9&])(orgie|sex)([-.?+=_0-9&]|$)

I have tested it with google, altavista and yahoo, it does the job.

HTH,

R�mi.

> -----Message d'origine-----
> De : Jason Ledford [mailto:[EMAIL PROTECTED] 
> Envoy� : mardi 27 juillet 2004 19:55
> � : [EMAIL PROTECTED]
> Objet : using expressions
> 
> 
> I am having a problem with my expression lists.  I am trying to block 
> the search of words so I am using a second expression list to do that 
> and here it is
> 
> (^|[-.?+=_0-9])(orgie|sex)?([-.?+=_0-9]|$)
> 
> nothing to fancy.  only problem is when someone does a search on 
> anything it gets blocked because every search has an = sign.
> 
> what am I doing wrong with this expression.  I have since disabled it 
> and am only doing words for expressions, like (orgie|sex)  
> only problem 
> there is that sites that have those words are blocked, like 
> www.demsextrememakeover.com which has nothing to do with sex but its 
> blocked because of the word sex.
> 
> Thanks for any help
> 

Reply via email to