support partial_match in #match