On Sep 24, 2004, at 5:20 PM, Christopher Sawtell wrote:
On Fri, 24 Sep 2004 17:11, Jim Cheetham wrote:
Careful, '*' will match "nothing" as well, so that would match .fred@ as
well. Use '+' to match "one or more".
Indeed, but in this email situation don't we want to match '.fred' as being a
crook address.

No, because Rik's original stated problem was edac3289f.0081632@ or something like that, I'm trying to make sure that the regexp matched the stated problem, not the generalised one.


I mean, sure, you probably don't want to allow ".fred@" to go through, but equally you don't want "000@" of any of a whole range of rubbish addresses.

The "best" answer is positive matching - have rules that rescue "rik@" "info@" and so on - all the addresses that are actually wanted, and reject everything else (well, move it into a 'junk' folder :-)

-jim



Reply via email to