import re


def get_number(name):
    """
    use regex to get the first integer in the name
    if none exists, return -1
    """
    try:
        num = int(re.findall("[0-9]+", name)[0])
    except:
        num = -1
    return num