public abstract class PatternUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static Pattern |
P_CODE_DATA_VALUE |
static Pattern |
P_CODE_LINE |
static Pattern |
P_CODE_LINE2 |
static String |
REGEX_CHINESE_CHAR
中文字符正则
|
static String |
REGEX_CODE_BOOLEAN |
static String |
REGEX_CODE_LINE |
static String |
REGEX_CODE_LINE2 |
static String |
REGEX_CODE_NULL |
static String |
REGEX_CODE_NUMBER |
static String |
REGEX_CODE_STRING |
static String |
REGEX_CODE_STRING1 |
static String |
REGEX_CODE_STRING2 |
static String |
REGEX_CODE_VALUE |
| 构造器和说明 |
|---|
PatternUtils() |
public static final Pattern P_CODE_DATA_VALUE
public static final Pattern P_CODE_LINE
public static final Pattern P_CODE_LINE2
public static boolean validate(@NonNull
Pattern pattern,
@Nullable
CharSequence str)
pattern - 正则匹配str - 字符串public static boolean validate(@NonNull
String regex,
@Nullable
CharSequence str)
regex - 正则匹配str - 字符串Copyright © 2021 EasyJ寮�婧愮ぞ鍖�. All rights reserved.