Note that my comments are opinion rather than fact!
That is, of course, always the case...but in this instance I *know* it's
the case before hand :-)
:0:
* 2147483647^0 ^TO_.*,
* -1^0
* 1^0 ^TO_
multiples
or
:0:
* ^TO_.*(,|(^.+)*^TO_)
multiples
I'd suppose that the former is quicker when there is a comma in an addressee
header, but otherwise I can't guess.
Firstly, ^TO is a (slightly) smaller regular expression than ^TO_ and so
should be (slightly) faster to parse.
As far as the comma-free situation is concerned, I'd expect the latter
example to be slightly better. The scoring example would have to apply
the regular expression (at least) twice to find two matching lines. The
second example will do it in a one-er.
Is this purely from interest? Or are you striving to shave off every
last CPU cycle?
Martin
--
Martin McCarthy /</ PGP key available
`Procmail Companion' \>\ http://www.ancient-scotland.co.uk
Addison Wesley /</ http://www.ehabitat.demon.co.uk
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail