def matches(self, mask):
return all(map(lambda m, c: not m.isdigit() or m == c, mask, self))<EOL>
:param mask: Template for comparision. If mask symbol is not digit
    then it passes.
:type mask: :py:class:`str`

::

    >>> Code("123").matches("1")
    True
    >>> Code("123").matches("1x3")
    True