/// <summary>
/// 이메일 유효 테스트..맞지 않으면 false 반환
/// </summary>
/// <param name="strEmail"></param>
/// <returns></returns>
public static bool Chkemail(string strEmail)
{
bool bResult = false;
Regex rexEmail = new Regex(@"\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*");
if (rexEmail.IsMatch(strEmail))
{
bResult = true;
}
return bResult;
}
'ASP.NET' 카테고리의 다른 글
SMTP를 이용한 메일 발송 (0) | 2015.05.28 |
---|---|
아이디 영문자와 숫자만 받기 (0) | 2015.05.28 |
Base64 Encode & Decode (0) | 2015.05.28 |
DataSet를 액셀로 저장하기 (0) | 2015.05.28 |
문자열을 MD5로 암호화 (0) | 2015.05.28 |