RegExp正则管理类
一、类名Class
类名:PublicFunctions.RegExp
二、属性Properties
无
三、方法Methods
1、是否邮件
函数:public static bool IsEmail(string s)
返回: bool
2、是否IP
函数:public static bool IsIp(string s)
返回: bool
3、是否数字
函数:public static bool IsNumeric(string s)
返回: bool
4、判断是否为decimal
函数:public static bool IsDecimal(string s)
返回: bool
5、是否绝对地址
函数:public static bool IsPhysicalPath(string s)
返回: bool
6、是否相对地址
函数:public static bool IsRelativePath(string s)
返回: bool
7、判断是否有SQL注入,是否安全
函数:public static bool IsSafety(string s)
返回: bool
8、是否unicode
函数:public static bool IsUnicode(string s)
返回: bool
9、是否URL
函数:public static bool IsUrl(string s)
返回: bool
10、是否为手机号码
函数:public static bool IsMobile(string s)
返回: bool
11、获得所有的EMAIL地址
函数:public static List<string> GetEmails(string text)
返回: bool