title: How can I do a regex pattern for Hibernate validation?
body: <p>I want to use a regex <code>@Pattern</code> with <code>Hibernate</code> validation. How can I do this regex expression? </p>
  
  <p>[a][b][c][d][e] is a number with 13 digits like this: 1831222132132</p>
  
  <pre><code>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 =&gt; b = 83;
  c - from 01 to 12;
  d - from 01 to 31;
  e - 6 digits;
  </code></pre>
  
  <p>Any help will be appreciated. Thank you!</p>