@classmethod
def get_resource_group(cls, resource_id):
    """Extracts the resource group from a resource id.

        :param resource_id" resource id to extract from
        :return: resource group string or None
        """
    matches = cls.rg_sub_extractor.search(resource_id)
    if matches is None:
        return None
    return matches.group(2)
