extract_rule_info function

Extract Rule Info