import re


def get_collect_id(imageID):
    """Get the collect ID for an image name using a regex."""
    collect_id = re.findall('Atlanta_nadir[0-9]{1,2}_catid_[0-9A-Z]{16}',
                            imageID)[0]

    return collect_id