* Doug Monroe <[EMAIL PROTECTED]> [2003-09-16 14:47]:
> [EMAIL PROTECTED] wrote:

> >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".

HTH,
alex


-- 
Alex Pleiner
zeitform Internet Dienste         Fraunhoferstrasse 5
                                  64283 Darmstadt, Germany
http://www.zeitform.de            Tel.: +49 (0)6151 155-635
mailto:[EMAIL PROTECTED]        Fax:  +49 (0)6151 155-634
GnuPG/PGP Key-ID: 0x613C21EA


-------------------------------------------------------
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