Class PatternPool

java.lang.Object
com.sure.tool.lang.PatternPool

public class PatternPool extends Object
常用正则表达式模式池,参考 Hutool 的 PatternPool 设计。

English: Reusable, precompiled regex patterns for common formats.

Since:
0.1.0
Author:
suretool
  • Field Details

    • EMAIL

      public static final Pattern EMAIL
      邮箱
    • MOBILE

      public static final Pattern MOBILE
      手机号(中国大陆)
    • ID_CARD_18

      public static final Pattern ID_CARD_18
      18 位身份证
    • ID_CARD_15

      public static final Pattern ID_CARD_15
      15 位身份证
    • IPV4

      public static final Pattern IPV4
      IPv4 地址
    • URL

      public static final Pattern URL
      URL
    • CHINESE

      public static final Pattern CHINESE
      纯中文
    • PLATE_NUMBER

      public static final Pattern PLATE_NUMBER
      车牌号(含新能源,7-8 位)
    • POSTAL_CODE

      public static final Pattern POSTAL_CODE
      邮政编码(中国大陆)
    • MONEY

      public static final Pattern MONEY
      金额(正数,最多两位小数)
    • GENERAL

      public static final Pattern GENERAL
      通用单词(字母数字下划线)
    • UUID

      public static final Pattern UUID
      UUID(含连字符)
    • MAC_ADDRESS

      public static final Pattern MAC_ADDRESS
      MAC 地址