Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to validate email address
Message
 
To
15/07/2003 14:05:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00810348
Message ID:
00810407
Views:
7
>Is there a rule to determine if an email address is valid? I mean, just checking the characters of the address.

Brian's already mentioned the six character minimum so I won't bother with that. Try
oRE = CREATEOBJECT("VBScript.RegExp")
oRE.Pattern = "\w+\@\w+\.\w+"
? oRE.Test(tceMailAddr)
As you might guess, the Test method will return a logical value indicating whether or not the parameter matches the Pattern property.
George

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

Click here to load this message in the networking platform