正则表达式判断邮箱

public static class StringExt

{

public static  bool IsEmail(this string obj)

{

   return  Regex.IsMatch(obj,@"^\w+@\w+\.\w+$");

}

}

 

posted on 2016-08-03 14:10  路上有你F  阅读(226)  评论(0)    收藏  举报