jdow wrote:

>Odd, I typed that correctly in the user_prefs and transcribed it
>wrong here.
>header JD_FROM_DRUG_1   From =~ /(viagra|cialis| soma)\b/i
>
JD - performance suggestion. When doing a (a|b) type construct, add ?:
to disable backreferences. It saves some memory and speeds the regex
execution. The only drawback is you can't use a backreference (\1) later
in the regex, but if you're not using it, that's not a drawback at all.

header JD_FROM_DRUG_1   From =~ /(?:viagra|cialis| soma)\b/i


Reply via email to