Modified table_match_pattern