|
From: Lionel B. <lio...@bo...> - 2005-09-21 22:43:25
|
Jeff Rice wrote the following on 21.09.2005 18:58 :
>Lionel Bouton wrote:
> > Good, I believe this is useful. Note: the case insensitive match isn't
>
>
>>needed. All addresses are lowercased before being processed. I removed
>>it from all your substitution.
>>
>>
>
>Good to know. The other VERP I am experimenting with deals with a
>number of emails I get that don't contain tell-tale signs (like -,_, or
>.) but are otherwise one-shot emails. At the moment, I am assuming that
>if an email name contains more than 7 consecutive digits, the whole name
>should be masked. I have never seen a normal email account with that
>many digits in a row.
>
># mask long numeric sequences
>$user =~ s/.*[0-9]{7,}.*/#/g;
>
>
Doesn't that simply replace any string with at least seven successive
numerical characters by a sharp?
I would have used:
$user =~ s/[0-9]{7,}/#/g;
Lionel.
|