Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Email Validation
Message
De
05/11/2011 06:49:05
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01454317
Message ID:
01528145
Vues:
69
J'aime (2)
>>Not trying to gang up, but your email worked fine for me as well. I did notice that a space on either end of the email caused it to fail. alltrim() maybe?
>>
>>>>>>>>
"^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$"
according to Craig Boyd's blog http://www.sweetpotatosoftware.com/spsblog/2006/01/04/ARegularExpressionsLibraryForVisualFoxPro.aspx
>
>It works now. I added alltrim just in case.

You should know that the ^ at the beginning of the expr and the $ at the end are called anchors or zero width assertions, ie they do not consume any char
When Multiline is false, ^ matches the beginning of the string and $ matches the end of the string

Anchors also include

\b The match must occur on boundary between a \w and a \W (\w is [A-Za-z0-9_] and \W is [^A-Za-z0-9_] )
\B The match cannot occur on a \b boundary
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform