On Fri, 6 Feb 2004, Bob Apthorpe wrote: > So you want to match an address in the To field where the domain is > 'newsguy.com' and the user is anyone except 'reader', correct? > > Will this work?: > > header To_Newsguy_Not_Reader To =~ /(?<!reader)[EMAIL PROTECTED]/i > describe mesg to newsguy recipient but not reader > score To_Newsguy_Not_Reader 6 > > where (?<! ... ) is a zero-width negative look-behind assertion, a > somewhat obscure bit of perl arcana found with 'perldoc perlre', which > is written in some kind of crazy moon language.
Using it in limited space (such as a specific header) is OK, just avoid it for general body matching. The negative look-behind matching can be a performance killer. -- 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{