def __init__(self, default=REQUIRED, pattern=None):
        super(String, self).__init__(default)
        self.pattern = pattern
        if pattern:
            self.regex = re.compile(pattern)
Create a template with the added optional `pattern` argument,
dataset/ETHPy150Open beetbox/beets/beets/util/confit.py/String.__init__