车间能级提升-智能设备管理系统
朱桂飞
2025-01-09 3e8f7f239bedae0b4f04a1ac6bd443ba6298f73c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package org.dromara.common.core.factory;
 
import cn.hutool.core.lang.PatternPool;
import org.dromara.common.core.constant.RegexConstants;
 
import java.util.regex.Pattern;
 
/**
 * 正则表达式模式池工厂
 * <p>初始化的时候将正则表达式加入缓存池当中</p>
 * <p>提高正则表达式的性能,避免重复编译相同的正则表达式</p>
 *
 * @author 21001
 */
public class RegexPatternPoolFactory extends PatternPool {
 
    /**
     * 字典类型必须以字母开头,且只能为(小写字母,数字,下滑线)
     */
    public static final Pattern DICTIONARY_TYPE = get(RegexConstants.DICTIONARY_TYPE);
 
    /**
     * 身份证号码(后6位)
     */
    public static final Pattern ID_CARD_LAST_6 = get(RegexConstants.ID_CARD_LAST_6);
 
    /**
     * QQ号码
     */
    public static final Pattern QQ_NUMBER = get(RegexConstants.QQ_NUMBER);
 
    /**
     * 邮政编码
     */
    public static final Pattern POSTAL_CODE = get(RegexConstants.POSTAL_CODE);
 
    /**
     * 注册账号
     */
    public static final Pattern ACCOUNT = get(RegexConstants.ACCOUNT);
 
    /**
     * 密码:包含至少8个字符,包括大写字母、小写字母、数字和特殊字符
     */
    public static final Pattern PASSWORD = get(RegexConstants.PASSWORD);
 
    /**
     * 通用状态(0表示正常,1表示停用)
     */
    public static final Pattern STATUS = get(RegexConstants.STATUS);
 
}