本帖最后由 剑弑 于 2017-10-20 16:29 编辑
时间+日期:[AppleScript] 纯文本查看 复制代码 @"^(\d{4})(-|\/)(\d{1,2})\2(\d{1,2}) (0\d{1}|1\d{1}|2[0-3]):[0-5]\d{1}:([0-5]\d{1})$"
日期:^(\d{4})(-|\/)(\d{1,2})\2(\d{1,2})$
Email:^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$
身份证号码:(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)
IP:^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$
手机号码:^1(3|4|5|7|8)\d{9}$
护照号码:^1[45][0-9]{7}|G[0-9]{8}|P[0-9]{7}|S[0-9]{7,8}|D[0-9]+$
电话号码:^((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)$
邮政编码:^\d{6}$
时间:[C#] 纯文本查看 复制代码 @"^(0\d{1}|1\d{1}|2[0-3]):[0-5]\d{1}:([0-5]\d{1})$"
|