#include "stdafx.h"
#include <Atlrx.h>
int _tmain(int argc, _TCHAR* argv[])
{
CString Text;
CAtlRegExp<> m_Email;
REParseError status = m_Email.Parse( L"^[0-9a-zA-Z/_/-|]+@[0-9a-zA-Z/_/-]+[/.]+[a-zA-Z]" );
if( REPARSE_ERROR_OK != status )
{
return FALSE;
}
CAtlREMatchContext<> m_rEmail;
if( !m_Email.Match( Text,&m_rEmail ))
{
return FALSE;
}
return 0;
}