> -----Original Message----- > From: David B Funk [mailto:[EMAIL PROTECTED] > Sent: Friday, July 11, 2003 12:38 PM > To: Chris Santerre > Cc: Spamassassin-Talk (E-mail) > Subject: RE: [SAtalk] tricky spam > > > 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
minor? MINOR? Hell no! You know how many rules I have DON'T have this? :) You may have saved me a TON of memory and time. I had yet to figure out what the preceding ?: meant. Thank you VERY much! Big help! I'm still learning more about perl. Do you have an example of when you would interpolate the match in a backreference? Thanks again!! Chris ------------------------------------------------------- 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