温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:Acom进出仓管理系统源码
当前文件路径:AcomStore/Components/PageValidate.cs

1using System; 2
using System.Collections.Generic; 3
using System.Text; 4
using System.Text.RegularExpressions; 5
6
namespace AcomLb.Components 7
{ 8
public class PageValidate 9
{ 10
11
12
13
private static Regex RegNumber = new Regex("^[0-9]+$"); 14
15
private static Regex RegNumberSign = new Regex("^[+-]?[0-9]+$"); 16
17
private static Regex RegDecimal = new Regex("^[0-9]+[.]?[0-9]+$"); 18
19
private static Regex RegDecimalSign = new Regex("^[+-]?[0-9]+[.]?[0-9]+$"); //等价于^[+-]?\d+[.]?\d+$ 20
21
private static Regex RegEmail = new Regex("^[\\w-]+@[\\w-]+\\.(com|net|org|edu|mil|tv|biz|info)$");//w 英文字母或数字的字符串,和 [a-zA-Z0-9] 语法一样 22
23
private static Regex RegCHZN = new Regex("[\u4e00-\u9fa5]"); 24
25
public PageValidate() 26
{ 27
28
} 29
30
31
32
数字字符串检查 120
121
中文检测 135
136
邮件地址 150
151
其他 197
} 198
199
200
201
202
} 203





}
}