On Thu, 24 Feb 2005, Stuart Johnston wrote: > [EMAIL PROTECTED] wrote: [snip..] > > > > How about (slightly easier to read) > > body L_MILLBILL /[mb]i[l|][l|]ions?/i > > or even > > body L_MILLBILL /[mb]i[l|]{2}ions?/i > > I started with something similar to that but it will also match millions > which we don't want. > > Stuart Johnston
Use negative lookahead to prevent matching on the unobfuscated version: body L_MILLBILL /\b(?!millions?)[mb]i[l|]{2}ions?/i The '(?!pattern)' says do-NOT match on this pattern. -- 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{