c++正则表达式验证邮箱地址#include <regex>
bool CheckEmailAddress(CString csEmailAddress)
{
匹配邮箱的正则表达式
  std::tr1::regex reg("([0-9A-Za-z\\-_\\.]+)@([0-9a-z]+\\.[a-z]{2,3}(\\.[a-z]{2})?)");
  std::tr1::smatch results;
  std::string search_string(csEmailAddress.GetBuffer());
  bool bRet = std::tr1::regex_match(search_string, results, reg);
  csEmailAddress.ReleaseBuffer();
  return bRet;
}