Package com.luna.common.regex
Class PatternPool
java.lang.Object
com.luna.common.regex.PatternPool
常用正则表达式集合,更多正则见:https://any86.github.io/any-rule/
- Author:
- Looly
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Pattern生日static final Pattern驾驶证 别名:驾驶证档案编号、行驶证编号 eg:430101758218 12位数字字符串 仅限:中国驾驶证档案编号static final Pattern车架号 别名:车辆识别代号 车辆识别码 eg:LDC613P23A1305189 eg:LSJA24U62JG269225 十七位码、车架号 车辆的唯一标示static final Pattern单个中文汉字static final Pattern中文汉字static final Pattern18位身份证号码static final Pattern社会统一信用代码static final Pattern邮件,符合RFC 5322规范,正则来自:http://emailregex.com/ What is the maximum length of a valid email address? https://stackoverflow.com/questions/386294/what-is-the-maximum-length-of-a-valid-email-address/44317754 注意email 要宽松一点。比如 jetz.chong@hutool.cn、jetz-chong@ hutool.cn、jetz_chong@hutool.cn、dazhi.duan@hutool.cn 宽松一点把,都算是正常的邮箱static final Pattern英文字母 、数字和下划线static final Pattern中文字、英文字母、数字和下划线static final Pattern分组static final Pattern16进制字符串static final PatternIP v4static final PatternIP v6static final PatternMAC地址正则static final Pattern移动电话static final Pattern中国香港移动电话 eg: 中国香港: +852 5100 4810, 三位区域码+10位数字, 中国香港手机号码8位数 eg: 中国大陆: +86 180 4953 1399,2位区域码标示+13位数字 中国大陆 +86 Mainland China 中国香港 +852 Hong Kong 中国澳门 +853 Macao 中国台湾 +886 Taiwanstatic final Pattern中国澳门移动电话 eg: 中国台湾: +853 68 00000, 三位区域码 +号码以数字6开头 + 7位数字, 中国台湾手机号码8位数 中国澳门 +853 Macao 国际域名缩写:MOstatic final Pattern中国台湾移动电话 eg: 中国台湾: +886 09 60 000000, 三位区域码+号码以数字09开头 + 8位数字, 中国台湾手机号码10位数 中国台湾 +886 Taiwan 国际域名缩写:TWstatic final Pattern货币static final Pattern数字static final Pattern中国车牌号码(兼容新能源车牌)static final Pattern座机号码static final Pattern座机号码+400+800电话static final Pattern时间正则static final PatternURLstatic final PatternHttp URLstatic final PatternUUIDstatic final Pattern不带横线的UUIDstatic final Pattern字母static final Pattern邮编,兼容港澳台 -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
GENERAL
英文字母 、数字和下划线 -
NUMBERS
数字 -
WORD
字母 -
CHINESE
单个中文汉字 -
CHINESES
中文汉字 -
GROUP_VAR
分组 -
IPV4
IP v4 -
IPV6
IP v6 -
MONEY
货币 -
EMAIL
邮件,符合RFC 5322规范,正则来自:http://emailregex.com/ What is the maximum length of a valid email address? https://stackoverflow.com/questions/386294/what-is-the-maximum-length-of-a-valid-email-address/44317754 注意email 要宽松一点。比如 jetz.chong@hutool.cn、jetz-chong@ hutool.cn、jetz_chong@hutool.cn、dazhi.duan@hutool.cn 宽松一点把,都算是正常的邮箱 -
MOBILE
移动电话 -
MOBILE_HK
中国香港移动电话 eg: 中国香港: +852 5100 4810, 三位区域码+10位数字, 中国香港手机号码8位数 eg: 中国大陆: +86 180 4953 1399,2位区域码标示+13位数字 中国大陆 +86 Mainland China 中国香港 +852 Hong Kong 中国澳门 +853 Macao 中国台湾 +886 Taiwan -
MOBILE_TW
中国台湾移动电话 eg: 中国台湾: +886 09 60 000000, 三位区域码+号码以数字09开头 + 8位数字, 中国台湾手机号码10位数 中国台湾 +886 Taiwan 国际域名缩写:TW -
MOBILE_MO
中国澳门移动电话 eg: 中国台湾: +853 68 00000, 三位区域码 +号码以数字6开头 + 7位数字, 中国台湾手机号码8位数 中国澳门 +853 Macao 国际域名缩写:MO -
TEL
座机号码 -
TEL_400_800
座机号码+400+800电话- See Also:
-
CITIZEN_ID
18位身份证号码 -
ZIP_CODE
邮编,兼容港澳台 -
BIRTHDAY
生日 -
URL
URL -
URL_HTTP
Http URL -
GENERAL_WITH_CHINESE
中文字、英文字母、数字和下划线 -
UUID
UUID -
UUID_SIMPLE
不带横线的UUID -
MAC_ADDRESS
MAC地址正则 -
HEX
16进制字符串 -
TIME
时间正则 -
PLATE_NUMBER
中国车牌号码(兼容新能源车牌) -
CREDIT_CODE
社会统一信用代码第一部分:登记管理部门代码1位 (数字或大写英文字母) 第二部分:机构类别代码1位 (数字或大写英文字母) 第三部分:登记管理机关行政区划码6位 (数字) 第四部分:主体标识码(组织机构代码)9位 (数字或大写英文字母) 第五部分:校验码1位 (数字或大写英文字母)
-
CAR_VIN
车架号 别名:车辆识别代号 车辆识别码 eg:LDC613P23A1305189 eg:LSJA24U62JG269225 十七位码、车架号 车辆的唯一标示 -
CAR_DRIVING_LICENCE
驾驶证 别名:驾驶证档案编号、行驶证编号 eg:430101758218 12位数字字符串 仅限:中国驾驶证档案编号
-
-
Constructor Details
-
PatternPool
public PatternPool()
-
-
Method Details