----- Original Message ----- 
From: "Alex Pleiner" <[EMAIL PROTECTED]>

> >OK thanks for the clarification.  I just want to stop the word "cum" in
any
> >case (upper, lower or mixed) from been in the subject.  But I don't want
to
> >block words with "cum" in them like "document".  So here's what I did.

> (?i)(.* cum .*|cum|cum .*|.* cum)

>>[sorry Doug for replying to you first. Forgot my brain somewhere.]

>>How about:

>>(?i).*\bcum\b.*

>>If you read "perldoc perlre":

>>       Perl defines the following zero-width assertions:

>>           \b  Match a word boundary
>>           \B  Match a non-(word boundary)

>>       A word boundary ("\b") is a spot between two characters
>>      that has a "\w" on one side of it and a "\W" on the other
>>       side of it (in either order), counting the imaginary char­
>>       acters off the beginning and end of the string as matching
>>       a "\W".

Alex,

I tried and tested you idea and no it doesn't work.  This is still the
simplest answer I have

(?i)(.* cum .*|cum|cum .*|.* cum)

Thanks
Malcolm



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to