Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Email validation
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00508552
Message ID:
00508649
Views:
25
>Hello everyone:
>
>I need an algorithm to determine whether an email address is well-formed. A validation function would be even better!
>
Daniel,

The Regular Expression parser from the Windows Script Host makes this a snap. In fact, this was one of the problems that Ed Rauh and I addressed in our final article on the WSH in past March's issue of the VFUG (www.vfug.org) newsletter. All you need is
oRE = CREATEOBJECT("VBScript.RegExp")
oRE.Pattern = "\w+\@\w+\.\w+"
llresult = oRE.Test(tceMailAddr)
The article and the one's that preceded it are available on-line at VFUG.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform