|
From: Lionel B. <lio...@bo...> - 2005-09-21 23:07:47
|
Lionel Bouton wrote the following on 22.09.2005 00:43 :
> 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;
Sorry, just understood that your regexp reflected your goal.
I've seen GSM related e-mail adresses too. I'm not sure what to do about
that one.
|