On 12/27/05, Mark R. London <[EMAIL PROTECTED]> wrote: > What does m{} do, like in the following test? > > body DRUG_DOSAGE m{[\d\.]+ *\$? *(?:[\\/]|per) *d.?o.?s.?e}i
Looks like a case insensitive match .. Let's see.. [\d\.]+ matches a digit or a period one or more times * (that's space asterisk) matches 0 or more spaces \$? matches a dollar sign 0 or 1 time * (that's space asterisk) matches 0 or more spaces (?:[\\/]|per) I'm not 100% sure on.. It looks like it matches either :V or per ... * (that's space asterisk) matches 0 or more spaces d.?o.?s.?e matches d followed by 0 or 1 period, o followed by 0 or 1 period, s followed by 0 or 1 period, and e Standard perl regex .. Check out these sites : http://www.intuitive.com/spam-assassin-rule-help.html http://www.english.uga.edu/humcomp/perl/regex2a.html http://www.troubleshooters.com/codecorn/littperl/perlreg.htm -- Jason 'XenoPhage' Frisvold [EMAIL PROTECTED]