Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid email address
Message
 
À
14/07/2004 08:30:37
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00924140
Message ID:
00924375
Vues:
12
This solution works for me (It little VBish)
LOCAL loRegExp
loRegExp = CreateObject("VBScript.RegExp")
loRegExp.IgnoreCase = .T.
loRegExp.Pattern = '^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$'
m.valid = loRegExp.Test(m.email)
RELEASE loRegExp
IF m.valid = .T.
   ....
ENDIF
>I believe that I have read a post like this before, but I can't remember. Is there a way to check if a string is a valid email address? I believe I remember somebody talking about a third party product. TIA!
>
>
>MAC
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform