def METHOD_NAME(symbol):
    if re.match("VX[0-9][0-9][A-Z][0-9]", symbol):
        # weekly
        return False
    elif re.match("VX[A-Z][0-9]", symbol):
        # monthly
        return True
    else:
        raise Exception("IB Local Symbol %s not recognised" % symbol)