import re


def get_config_name(config):
    """
    Return sample sheet configuration name. Remove any identifying local
    directory information if present.

    :param config_val: Original configuration name (string)
    :return: String
    """
    if config.find('/') == -1 and config.find('\\') == -1:
        return config
    return re.split('[/\\\\]', config)[-1]