Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bad Email Addresses - Verification Process
Message
From
27/08/2004 02:00:39
 
 
To
26/08/2004 16:41:42
Mahmud Abdulla
Online Telcom Network Services
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00936769
Message ID:
00936889
Views:
20
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform