str = AAAS231225HASDSD02
Dividing into groups:
4 characters:^.{4}[a-zA-Z]
A date ddMMyy (([0-2][0-9]|3[0-1])([0][0-9]|[1][0-2])([0-9][0-9]))
M or H: [MHmh]
a 2 letter state frm mexico: (AS|BC|BS|CC|CL|CM|CS|CH|DF|DG|GT|GR|HG|JC|MC|MN|MS|NT|NL|OC|PL|QT|QR|SP|SL|SR|TC|TS|TL|VZ|YN|ZS|NE)
5 chars: [w]{5}
final:
^[a-zA-Z]{4}(([0-2][0-9]|3[0-1])([0][0-9]|[1][0-2])([0-9][0-9]))MHmh\w{5}$