On Fri, 11 Jul 2003, Chris Santerre wrote:
>
> Usually write it like, /(f|ph)ot0|(f|ph)0to/i
>

Minor perl technicality, use the 'non rembering' version of the
grouping operator, (?: ... ). As you probably aren't going to
interpolate the match in a backreference, don't waste the CPU and
memory to 'remember' it.

Thus write your pattern as:
        /(?:f|ph)ot0|(?:f|ph)0to/i

-- 
Dave Funk                                  University of Iowa
<dbfunk (at) engineering.uiowa.edu>        College of Engineering
319/335-5751   FAX: 319/384-0549           1256 Seamans Center
Sys_admin/Postmaster/cell_admin            Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{



-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to