Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bad Email Addresses - Verification Process
Message
De
27/08/2004 02:00:39
 
 
À
26/08/2004 16:41:42
Mahmud Abdulla
Online Telcom Network Services
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00936769
Message ID:
00936889
Vues:
22
Mahmud, I picked up this bit of code from here on U, I think from SergeyB - VFP meister extraordinaire:
* FUNCTION ValidateEmailAddress

* address to test
tcEmailAddr = "joebob@cleveralias.com"

* use regular expression test
LOCAL loRegExp
loRegExp = CreateObject("VBScript.RegExp")
loRegExp.IgnoreCase = .T.
loRegExp.Pattern = "^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$"

* is email valid?
? loRegExp.Test(tcEmailAddr)
>Hi,
>
>
>
>What should one look for whilst verifying bad email addresses in a customer database of over 50,000 records - Suggestion/Sample Code would be most helpful
>
>
>
>Thanks in Advance
>
>Regards
>
>Mahmud Abdulla
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform