public final class RegexUtil extends Object
正则工具
该工具主要是利用正则对字符串进行判断,主要功能如下:Constructor and Description |
---|
RegexUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containChinese(String str)
如果包含汉字则返回为true
|
static String |
getMatcher(String regex,
String source)
根据正则提取字符串
|
Copyright © 2021. All rights reserved.