def __init__(self, pattern, statement=None):
        self.string_pattern = pattern
        self.pattern = re.compile(pattern)
        self.statement = statement
        if not self.statement:
            self.statement = "must match pattern %s" % self.string_pattern
dataset/ETHPy150Open ceph/ceph-deploy/ceph_deploy/util/arg_validators.py/RegexMatch.__init__/original