The ultimate guide only says:
Pattern. Similar to a format mask: the user’s entry must match it.
Is this really a field for a mask or should it be a regular expression? I tryed to use the regex \d\d for a text datatype, and it almost worked. I say almost because the empty string is not being rejected.