Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Email Validation
Message
From
05/11/2011 06:49:05
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01454317
Message ID:
01528145
Views:
67
Likes (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
Previous
Reply
Map
View

Click here to load this message in the networking platform