I want to create a regexp for the month part in my input mask. This is what I have so far. But with this approach I can't write anything in the month part because it checks for only one digit ('m') and it expects to be two digits I think.
MaskTextInputFormatter _birthdayFormatter = MaskTextInputFormatter(
mask: 'dd/mm/yyyy',
filter: {'d': RegExp(r'[0-9]'), 'm': RegExp(r'(^0?[1-9]$)|(^1[0-2]$)'), 'y': RegExp(r'[0-9]')}
);
Is there a way to achieve this?
Mask and key
Form
Validator