----- Original Message ----- 
> and what exact subject line is being sent?
>
> The above gets turned into
>     /^(?i).* cum .*$/
>
> so it will NOT match
>     Subject: cum
> or
>     Subject: please cum
> e.g. it will NOT match any subject where the leading -or- trailing is
> NOT present
>
> It should match
>    Subject: test cUm test
> and variants.
> You need to make a regex that works for your needs.
> You don't have to do this testing with Q-S, try a simple standalone perl
> prog
>
>    $test = "testing xYz";
>    $pat  = "(?i).*xyz.*";
>    print "$test matched $pat\n" if ($test =~ /^$pat$/);

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 .*
To catch "please cum here"

(?i)cum
To simply catch "cum" as the only word in the subject

(?i)cum .*
To catch "cum here"

(?i).* cum
To catch "Please cum"

So it looks like it's going to take at least 4 lines for each word I want to
block.  Unless you see an easier way of putting those 4 lines into one reg
expression.

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