Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid email addresses (after the @)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00886270
Message ID:
00891662
Vues:
30
>>Hi Sergey,
>> I got the html document you suggested, thanks. I went to the web site you suggested--how would I use it to determine whether or not an email address is valid? Thanks.
>
>In VFP you can use WSH as shown below.
* FUNCTION ValidateEmailAddress
>LPARAMETERS tcEmailAddr
>LOCAL loRegExp
>loRegExp = CreateObject("VBScript.RegExp")
>loRegExp.IgnoreCase = .T.
>loRegExp.Pattern = '< Email Validation pattern you prefer here >'
>RETURN loRegExp.Test(tcEmailAddr)
>
Just in case you were looking for the pattern. Here it is.
loRegExp.Pattern = "^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform