Chris Santerre wrote:
> Ok, perl gurus! If I but ?: in front of all my evilrules like so:
> 
> /?:www\.spamhost\.com/i
> or
> /?:(www\.spamhost\.com)/i
> 
> Would the rules be faster?

Actually, you'll probably get lint errors from SA.

?: is only useful when using parentheses to group tokens:

/(?:spamsite|spamsite2|spamsite3)\.com/i

(Which I use a lot to reduce the number of rules for spamsite domains.)

"All" it does is to not "remember" what actually matched in the text
being scanned.  This *does* have some uses...  just not in SA rules like
this.  :/

-kgd
-- 
<erno> hm. I've lost a machine.. literally _lost_. it responds to
ping, it works completely, I just can't figure out where in my
apartment it is.


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to