add Regex
This commit is contained in:
@ -126,17 +126,6 @@ public class Text {
|
||||
return String.format("%0" + l + "d", number);
|
||||
}
|
||||
|
||||
/**
|
||||
* 正则表达式测试
|
||||
*
|
||||
* @param reg 正则
|
||||
* @param value 文本
|
||||
* @return true 为匹配
|
||||
*/
|
||||
public static boolean testReg(String reg, String value) {
|
||||
return Pattern.compile(reg).matcher(value).matches();
|
||||
}
|
||||
|
||||
/**
|
||||
* 驼峰转下划线
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user