>>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