Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to validate email address
Message
 
À
15/07/2003 14:05:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00810348
Message ID:
00810407
Vues:
8
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform