Finds a single match and retrieves the name of the rule that generated it.