Sidney Markowitz wrote:

>I don't really know perl, but I tried to duplicate the slow match on the
>rule in a little test program to see if I could experiment with ideas
>for a working regexp.
>
>The following program did not take long to run. What am I doing wrong?
>
Probably using a different rev of Perl than Charlie. (BTW, your code 
also works fine for me on Perl 5.6.0.) I know that some Perls behave 
more (or less) intelligently when fed these kinds of ambiguously 
matching regexps. In general, they ought to be avoided in the first place.

>Also, would it speed things up to have two rules, one which matches any
>subject and adds points, and another which matches a subject with any
>lower case and subtracts points, the combination adding to the number of
>points you would want to assign a single rule that matches all caps?
>
No, because then you're back to an eval rule, which, IMHO, is the right 
way to do this anyway.

-- 
          http://www.pricegrabber.com | Dog is my co-pilot.

                                   




_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to