摘要:
using System.Text.RegularExpressions; /// <summary> /// C#3.0扩展方法(实现验证功能) /// </summary> public static class Extensions { public static bool IsValidEmailAddress(this string email) { Regex regex = new Regex(@"\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"); return regex.IsMat 阅读全文
posted @ 2009-06-04 08:35 X龙 阅读(359) 评论(0) 推荐(0) 编辑