Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Email validation
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00508552
Message ID:
00509069
Vues:
38
>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.

Try this pattern, it allows for "-" and "_" in the emails.
oRE.Pattern = "[\w-_]+\@{1}[\w-_]+\.\w+"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform