This commit is contained in:
caozehui
2024-11-21 15:48:31 +08:00
parent beb8b9745d
commit bc94d431ed
2 changed files with 14 additions and 9 deletions

View File

@@ -253,4 +253,9 @@ public interface PatternRegex {
* 时间正则(秒)
*/
String TIME_SECOND_FORMAT = "^((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29))\\s+([0-1]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$";
/**
* 误差体系名称正则(只能包含数字、字母、下划线、点、减号、空格、斜杠)
*/
String ERR_SYS_NAME="^[\\w\\-\\s\\./]+$";
}