

class Match:
    def __init__(self, group_id: int, start_idx: int, end_idx: int, string: str, name: str) -> None:
        self.group_id = group_id
        self.name = name
        self.start_idx = start_idx
        self.end_idx = end_idx
        self.match = string[start_idx:end_idx]
