12
2012
04

C# 邮件格式判断

public bool CheckEmail(string strEmail)
{
int i, j;
string strTmp, strResult;
string strWords = "abcdefghijklmnopqrstuvwxyz_-.0123456789"; //定义合法字符范围

bool blResult = false;
strTmp = strEmail.Trim();
...
«1»