def get_index(search, names):
    """ Find index matching search in names list of 'Key|Value' """
    for name_index, name in enumerate(names):
        if search == name.split('|')[0]:
            return name_index

    return None