【发布时间】:2020-06-01 14:53:17
【问题描述】:
我想使用带有Hibernate 验证的正则表达式@Pattern。我该如何做这个正则表达式?
[a][b][c][d][e] 是一个 13 位数字,如下所示:1831222132132
a - one digit, 1 or 2, nothing else;
b - from 01 to 99, it is the last 2 digits from the year, for ex 1983 => b = 83;
c - from 01 to 12;
d - from 01 to 31;
e - 6 digits;
任何帮助将不胜感激。谢谢!
【问题讨论】:
标签: java regex hibernate hibernate-validator