@classmethod
    def from_re_match(cls, match):
        kwargs = match.groupdict()
        if match.string.find('start') >= 0:
            kwargs['start'] = True
        elif match.string.find('end') >= 0:
            kwargs['end'] = True
        return cls(**kwargs)
Return an event constructed from a self.regex match
dataset/ETHPy150Open pmrowla/pysrcds/srcds/events/generic.py/CvarEvent.from_re_match