简单正则表达式验证Email地址是否正确

private bool IsValidEmail(string strIn)
        
{
            
return Regex.IsMatch(strIn, @"^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$"); 
        }
posted @ 2009-07-28 08:22  94cool  阅读(160)  评论(0)    收藏  举报