split_match_type function

Split matching type