I want to use a regex @Pattern with Hibernate validation. How can I do this regex expression?
[a][b][c][d][e] is a number with 13 digits like this: 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;
Any help will be appreciated. Thank you!