def __init__(self, tgid, is_driver, app_phase):
    self.tgid = tgid
    self.is_driver = is_driver
    self.app_phase = app_phase
    self.matcher = re.compile('B\\|\\d+\\|.*\\[([^]]+)\\]\\[?([^]])\\]?')
    self.reset()
def __init__(self, tgid, is_driver, app_phase):
    self.tgid = tgid
    self.is_driver = is_driver
    self.app_phase = app_phase
    self.matcher = re.compile('B\\|\\d+\\|.*\\[([^]]+)\\]\\[?([^]])\\]?')
    self.reset()